public class StreamPumper extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
StreamPumper(InputStream in,
StreamConsumer consumer) |
StreamPumper(InputStream in,
StreamConsumer consumer,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close it.
|
void |
disable() |
void |
flush()
flush.
|
Exception |
getException() |
void |
run()
run it.
|
protected void |
setDone() |
void |
waitUntilDone() |
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 StreamPumper(InputStream in, StreamConsumer consumer)
in - InputStreamconsumer - StreamConsumerpublic StreamPumper(InputStream in, StreamConsumer consumer, @Nullable Charset charset)
in - InputStreamconsumer - StreamConsumercharset - Charsetpublic void run()
public void flush()
public void close()
public void waitUntilDone()
throws InterruptedException
InterruptedExceptionpublic void disable()
protected void setDone()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.