Class StreamPollFeeder
java.lang.Object
java.lang.Thread
org.apache.maven.shared.utils.cli.StreamPollFeeder
- All Implemented Interfaces:
Runnable
Poll InputStream for available data and write the output to an OutputStream.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private boolean
private Throwable
private final InputStream
private final Object
private final OutputStream
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionStreamPollFeeder
(InputStream input, OutputStream output) Create a new StreamPollFeeder -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
BUF_LEN
public static final int BUF_LEN- See Also:
-
input
-
output
-
exception
-
done
private boolean done -
lock
-
-
Constructor Details
-
StreamPollFeeder
StreamPollFeeder(InputStream input, OutputStream output) Create a new StreamPollFeeder- Parameters:
input
- Stream to read fromoutput
- Stream to write to
-
-
Method Details