|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mdanderson.biostat.util.DefaultStreamMonitor
DefaultStreamMonitor - Generic application stream monitoring
Field Summary |
Fields inherited from interface org.mdanderson.biostat.util.DefaultStreamMonitorKeys |
STREAMMONITOR_AWAITING_INPUT, STREAMMONITOR_DONE, STREAMMONITOR_END_OF_INPUT, STREAMMONITOR_STARTED, STREAMMONITOR_TAG |
Constructor Summary | |
DefaultStreamMonitor(InputStream is,
OutputStream redirect)
Class constructor specifying input stream, and output stream |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultStreamMonitor(InputStream is, OutputStream redirect)
is
- input streamredirect
- output streamMethod Detail |
public void disableEcho()
public void enableEcho()
public void run()
run
in interface Runnable
protected void echoOutput(String line)
line
- string containing reformatted external process outputprotected String processLine(String line)
line
- string containing external process output
|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |