org.eclipse.actf.validation.javapp.launch
Class RuntimeStreamHandlerThread
java.lang.Object
java.lang.Thread
org.eclipse.actf.validation.javapp.launch.RuntimeStreamHandlerThread
- All Implemented Interfaces:
- Runnable
public class RuntimeStreamHandlerThread
- extends Thread
used to process standard error and standard out streams when
running a distinct process.
- Author:
- Mike Squillace
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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, yield |
RuntimeStreamHandlerThread
public RuntimeStreamHandlerThread(InputStream is,
IReporter dest,
boolean isErrorStream)
- create a thread to process stderr/stdout from a separate process
- Parameters:
is
- - input stream from processdest
- - destinationisErrorStream
- - if this is an error stream from a process
RuntimeStreamHandlerThread
public RuntimeStreamHandlerThread(InputStream is,
IReporter dest,
boolean isErrorStream,
ValidationLauncher launcher)
- create a thread to process stderr/stdout from a separate process
- Parameters:
is
- - input stream from processdest
- - destinationisErrorStream
- - if this is an error stream from a processlauncher
- - callbacks to launcher to update launch events
setDebugWriter
public void setDebugWriter(PrintWriter writer)
- set a writer for debugging. All contents of all streams are
sent to this stream if set.
- Parameters:
writer
- - destination for debugging
getDebugWriter
public PrintWriter getDebugWriter()
- return the write for debugging
- Returns:
- writer being used for debugging
setUseAllOutput
public void setUseAllOutput(boolean output)
run
public void run()
-
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread