Package org.codehaus.plexus.util.cli
Class StreamFeeder
- java.lang.Object
-
- java.lang.Thread
-
- org.codehaus.plexus.util.cli.AbstractStreamHandler
-
- org.codehaus.plexus.util.cli.StreamFeeder
-
- All Implemented Interfaces:
java.lang.Runnable
public class StreamFeeder extends AbstractStreamHandler
Read from an InputStream and write the output to an OutputStream.
-
-
Constructor Summary
Constructors Constructor Description StreamFeeder(java.io.InputStream input, java.io.OutputStream output)
Create a new StreamFeeder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private void
feed()
java.lang.Throwable
getException()
void
run()
-
Methods inherited from class org.codehaus.plexus.util.cli.AbstractStreamHandler
disable, isDisabled, isDone, setDone, waitUntilDone
-
Methods inherited from class java.lang.Thread
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
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
close
public void close()
-
getException
public java.lang.Throwable getException()
- Returns:
- the Exception
- Since:
- 3.1.0
-
feed
private void feed() throws java.io.IOException
- Throws:
java.io.IOException
-
-