public class StreamCopyThread extends Thread
Thread that copies InputStream to OutputStream.
A variation on the Jenkins StreamCopyThread to handle error handling differently and catch errors for reporting.
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
StreamCopyThread(String threadName,
InputStream in,
OutputStream out) |
StreamCopyThread(String threadName,
InputStream in,
OutputStream out,
boolean closeOut) |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getFailure() |
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 StreamCopyThread(String threadName, InputStream in, OutputStream out, boolean closeOut)
public StreamCopyThread(String threadName, InputStream in, OutputStream out)
Copyright © 2004-2015. All Rights Reserved.