public class StreamPumper extends AbstractStreamHandler
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private StreamConsumer |
consumer |
private Exception |
exception |
private BufferedReader |
in |
private PrintWriter |
out |
private static int |
SIZE |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
StreamPumper(InputStream in) |
StreamPumper(InputStream in,
PrintWriter writer) |
StreamPumper(InputStream in,
PrintWriter writer,
StreamConsumer consumer) |
StreamPumper(InputStream in,
StreamConsumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private void |
consumeLine(String line) |
void |
flush() |
Exception |
getException() |
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 final BufferedReader in
private final StreamConsumer consumer
private final PrintWriter out
private volatile Exception exception
private static final int SIZE
public StreamPumper(InputStream in)
public StreamPumper(InputStream in, StreamConsumer consumer)
public StreamPumper(InputStream in, PrintWriter writer)
public StreamPumper(InputStream in, PrintWriter writer, StreamConsumer consumer)
Copyright © 2016–2018 Simuline Organization (l2r). All rights reserved.