示例#1
0
 public static void print(String s) throws IOException {
   if (out == null) {
     systemout.println(s);
   } else {
     out.printf(s + "\n");
     out.flush();
   }
 }
示例#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();
   }
 }