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()
Deprecated.
As of 3.2.0, removed without replacement.
|
void |
disable() |
void |
flush()
Deprecated.
As of 3.2.0, removed without replacement.
|
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()
@Deprecated public void flush()
@Deprecated public void close()
public void waitUntilDone() throws InterruptedException
InterruptedException
public void disable()
protected void setDone()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.