Example #1
0
 /**
  * After this method is called, input will be read from inputStream, provided it is non-null. If
  * inputStream is null, then this method has the same effect as calling readStandardInput(); that
  * is, future input will come from the standard input stream.
  */
 public static void readStream(InputStream inputStream) {
   if (inputStream == null) readStandardInput();
   else readStream(new InputStreamReader(inputStream));
 }