Package com.iizix

Class OutputReader


  • public class OutputReader
    extends java.lang.Object
    Output stream reader class.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      ConstructorDescription
      OutputReader​(java.io.InputStream in)
      Constructor used for stream reading in conjunction with processes.
      OutputReader​(java.io.InputStream in, IPrintAdapter printer)
      Constructor used for stream reading in conjunction with processes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidgetOutput​(java.lang.StringBuilder output)
      Waits for the stream to be closed and returns the output as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OutputReader

        public OutputReader​(java.io.InputStream in)
        Constructor used for stream reading in conjunction with processes.
        Parameters:
        in - The input stream.
      • OutputReader

        public OutputReader​(java.io.InputStream in,
                            IPrintAdapter printer)
        Constructor used for stream reading in conjunction with processes.
        Parameters:
        in - The input stream.
        printer - A printer interface for each line, null for none.
    • Method Detail

      • getOutput

        public void getOutput​(java.lang.StringBuilder output)
        Waits for the stream to be closed and returns the output as a string.
        Parameters:
        output - Buffer filled with the output without CR/LF but only LF's.