public class OutputReader extends Object
Constructor and Description |
---|
OutputReader(InputStream in)
Constructor used for stream reading in conjunction with processes.
|
OutputReader(InputStream in,
IPrintAdapter printer)
Constructor used for stream reading in conjunction with processes.
|
Modifier and Type | Method and Description |
---|---|
void |
getOutput(StringBuilder output)
Waits for the stream to be closed and returns the output
as a string.
|
public OutputReader(InputStream in)
in
- The input stream.public OutputReader(InputStream in, IPrintAdapter printer)
in
- The input stream.printer
- A printer interface for each line, null for none.public void getOutput(StringBuilder output)
output
- Buffer filled with the output without CR/LF but only LF's.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.