Example #1
0
 public static void print(String s) throws IOException {
   if (out == null) {
     systemout.println(s);
   } else {
     out.printf(s + "\n");
     out.flush();
   }
 }
Example #2
0
 protected static void out(String s, Object... args) throws IOException {
   if (out == null) {
     systemout.println(sprintf(s, args));
   } else {
     out.printf(s + "\n", args);
     out.flush();
   }
 }