public class StreamFeeder extends AbstractStreamHandler
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private InputStream |
input |
private OutputStream |
output |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
StreamFeeder(InputStream input,
OutputStream output)
Create a new StreamFeeder
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private void |
feed() |
void |
run() |
disable, isDisabled, isDone, setDone, waitUntilDoneactiveCount, 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, yieldprivate InputStream input
private OutputStream output
public StreamFeeder(InputStream input, OutputStream output)
input - Stream to read fromoutput - Stream to write topublic void close()
private void feed()
throws IOException
IOExceptionCopyright © 2016–2018 Simuline Organization (l2r). All rights reserved.