org.mdanderson.biostat.util
public class DefaultStreamMonitor extends Object implements Runnable, DefaultStreamMonitorKeys
STREAMMONITOR_AWAITING_INPUT, STREAMMONITOR_DONE, STREAMMONITOR_END_OF_INPUT, STREAMMONITOR_STARTED, STREAMMONITOR_TAG
Constructor and Description |
---|
DefaultStreamMonitor(InputStream is,
OutputStream redirect)
Class constructor specifying input stream, and output stream
|
Modifier and Type | Method and Description |
---|---|
void |
disableEcho()
Disable echo of processed input from external process to 'stdout' stream.
|
protected void |
echoOutput(String line)
Echoes processed input from external process to 'stdout' stream.
|
void |
enableEcho()
Enable echo of processed input from external process to 'stdout' stream.
|
protected String |
processLine(String line)
Postprocesses the output from the input stream.
|
void |
run()
Thread entry-point for DefaultStreamMonitor object.
|
public DefaultStreamMonitor(InputStream is, OutputStream redirect)
is
- input streamredirect
- output streampublic void disableEcho()
public void enableEcho()
public void run()
protected void echoOutput(String line)
line
- string containing reformatted external process outputCopyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.