public class ConsoleOutputProcessReader extends AbstractProcessReader
| Modifier and Type | Field and 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_Process, m_Stdout| Constructor and Description |
|---|
ConsoleOutputProcessReader(java.lang.Process process,
boolean stdout)
Initializes the reader.
|
ConsoleOutputProcessReader(java.lang.Process process,
boolean stdout,
java.lang.String prefix)
Initializes the reader.
|
| Modifier and Type | Method and 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.
|
getProcess, isStdout, runpublic static java.lang.String PREFIX_STDOUT
public static java.lang.String PREFIX_STDERR
protected java.lang.String m_Prefix
public ConsoleOutputProcessReader(java.lang.Process process,
boolean stdout)
process - the process to monitorstdout - whether to read stdout or stderrpublic ConsoleOutputProcessReader(java.lang.Process process,
boolean stdout,
java.lang.String prefix)
process - the process to monitorstdout - 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 © 2018 University of Waikato, Hamilton, NZ. All Rights Reserved.