java.lang.Runnablepublic class CollectingProcessReader extends AbstractProcessReader
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.StringBuilder |
m_Content |
the string builder to store the data in.
|
m_Stdoutm_Process, m_Queue, m_Stopped| Constructor | Description |
|---|---|
CollectingProcessReader(boolean stdout,
java.lang.StringBuilder content) |
Initializes the reader.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.StringBuilder |
getContent() |
Returns the string builder for storing the content.
|
protected void |
process(java.lang.String line) |
For processing the line read from stdout/stderr.
|
doRun, isStdoutgetProcess, isStopped, run, setProcess, stopExecutionprotected java.lang.StringBuilder m_Content
public CollectingProcessReader(boolean stdout,
java.lang.StringBuilder content)
stdout - whether to read stdout or stderrcontent - for storing the contentpublic java.lang.StringBuilder getContent()
protected void process(java.lang.String line)
process in class AbstractProcessReaderline - the output lineCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.