public class StreamPumper extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_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, yield
public StreamPumper(InputStream in, StreamConsumer consumer)
in
- InputStream
consumer
- StreamConsumer
public StreamPumper(InputStream in, StreamConsumer consumer, @Nullable Charset charset)
in
- InputStream
consumer
- StreamConsumer
charset
- Charset
public void run()
public void flush()
public void close()
public void waitUntilDone() throws InterruptedException
InterruptedException
public void disable()
protected void setDone()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.