java.lang.Runnablepublic class ConsoleOutputProcessReader extends AbstractProcessReader
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
m_Prefix |
the prefix to use.
|
static java.lang.String |
PREFIX_STDERR |
the default prefix for stderr.
|
static java.lang.String |
PREFIX_STDOUT |
the default prefix for stdout.
|
m_Stdoutm_Process, m_Queue, m_Stopped| Constructor | Description |
|---|---|
ConsoleOutputProcessReader(boolean stdout) |
Initializes the reader.
|
ConsoleOutputProcessReader(boolean stdout,
java.lang.String prefix) |
Initializes the reader.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getPrefix() |
Returns the prefix in use.
|
protected void |
process(java.lang.String line) |
For processing the line read from stdout/stderr.
|
doRun, isStdoutgetProcess, isStopped, run, setProcess, stopExecutionpublic static java.lang.String PREFIX_STDOUT
public static java.lang.String PREFIX_STDERR
protected java.lang.String m_Prefix
public ConsoleOutputProcessReader(boolean stdout)
stdout - whether to read stdout or stderrpublic ConsoleOutputProcessReader(boolean stdout,
java.lang.String prefix)
stdout - whether to read stdout or stderrprefix - the prefix to use, null for auto-prefixpublic java.lang.String getPrefix()
protected void process(java.lang.String line)
process in class AbstractProcessReaderline - the output lineCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.