Package com.iizix
Class OutputReader
java.lang.Object
com.iizix.OutputReader
Output stream reader class.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorDescriptionConstructor used for stream reading in conjunction with processes.OutputReader
(InputStream in, IPrintAdapter printer) Constructor used for stream reading in conjunction with processes.Method Summary
Modifier and TypeMethodDescriptionvoid
getOutput
(StringBuilder output) Waits for the stream to be closed and returns the output as a string.
Constructor Details
OutputReader
Constructor used for stream reading in conjunction with processes.- Parameters:
in
- The input stream.
OutputReader
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
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.