java.lang.RunnableCollectingProcessReader, ConsoleOutputProcessReader, StreamingProcessReaderpublic abstract class AbstractProcessReader extends AbstractProcessRunnable
Process object.| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
m_Stdout |
whether to use stdout or stderr.
|
m_Process, m_Queue, m_Stopped| Constructor | Description |
|---|---|
AbstractProcessReader(boolean stdout) |
Initializes the reader.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doRun() |
The actual processing loop.
|
boolean |
isStdout() |
Returns whether the reader is for stdout or stderr.
|
protected abstract void |
process(java.lang.String line) |
For processing the line read from stdout/stderr.
|
getProcess, isStopped, run, setProcess, stopExecutionpublic AbstractProcessReader(boolean stdout)
stdout - whether to read stdout or stderrpublic boolean isStdout()
protected abstract void process(java.lang.String line)
line - the output lineprotected void doRun()
doRun in class AbstractProcessRunnableCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.