public class ReaderThread
extends java.lang.Thread
| Constructor and Description |
|---|
ReaderThread(java.io.InputStream ins,
java.lang.StringBuilder buf)
Allow child process I/O to flow thru the pipeline setup by caller, either
pass a StringBuilder to collect for later fetch, or null to cause
immediate continuous standard output (ex: so interactive user sees it).
|
| Modifier and Type | Method and Description |
|---|---|
void |
drain()
Drain all stream output from the process before trying to use the output.
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ReaderThread(java.io.InputStream ins,
java.lang.StringBuilder buf)
ins - stream to collectbuf - optional holder, null causes immediate System.outpublic void drain()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread