Package com.iizix
Class OutputReader
- java.lang.Object
- com.iizix.OutputReader
public class OutputReader extends java.lang.Object
Output stream reader class.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description 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 Type Method Description void
getOutput(java.lang.StringBuilder output)
Waits for the stream to be closed and returns the output as a string.
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.