Example #1
0
 /**
  * After this method is called, output will be sent to outputStream, provided it is non-null. If
  * outputStream is null, then this method has the same effect as calling writeStandardOutput();
  * that is, future output will be sent to the standard output stream.
  */
 public static void writeStream(OutputStream outputStream) {
   if (outputStream == null) writeStandardOutput();
   else writeStream(new PrintWriter(outputStream));
 }