Class StreamPollFeeder
- java.lang.Object
-
- java.lang.Thread
-
- org.apache.maven.shared.utils.cli.StreamPollFeeder
-
- All Implemented Interfaces:
java.lang.Runnable
class StreamPollFeeder extends java.lang.ThreadPoll InputStream for available data and write the output to an OutputStream.
-
-
Constructor Summary
Constructors Constructor Description StreamPollFeeder(java.io.InputStream input, java.io.OutputStream output)Create a new StreamPollFeeder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidclose()java.lang.ThrowablegetException()voidrun()voidwaitUntilDone()-
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 Detail
-
BUF_LEN
public static final int BUF_LEN
- See Also:
- Constant Field Values
-
input
private final java.io.InputStream input
-
output
private final java.io.OutputStream output
-
exception
private java.lang.Throwable exception
-
done
private boolean done
-
lock
private final java.lang.Object lock
-
-