Package com.iizix

Class OutputReader

java.lang.Object
com.iizix.OutputReader

public class OutputReader extends Object
Output stream reader class.
Author:
Christopher Mindus
  • Constructor Details

    • OutputReader

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

      public OutputReader(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 Details

    • getOutput

      public void getOutput(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.