public class FlushStreamCopyThread extends Thread
StreamCopyThread variant that flushes the output stream.
MINA's OutputStream does buffering, and Process.getOutputStream() talks about buffering, too,
so in both directions we use this to ensure bytes are delivered in a timely fashion.Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
FlushStreamCopyThread(String threadName,
InputStream in,
OutputStream out) |
FlushStreamCopyThread(String threadName,
InputStream in,
OutputStream out,
boolean closeOut) |
| Modifier and Type | Method and Description |
|---|---|
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 FlushStreamCopyThread(String threadName, InputStream in, OutputStream out, boolean closeOut)
public FlushStreamCopyThread(String threadName, InputStream in, OutputStream out)
Copyright © 2004-2013. All Rights Reserved.