Class StreamPumper
java.lang.Object
java.lang.Thread
org.apache.maven.shared.utils.cli.AbstractStreamHandler
org.apache.maven.shared.utils.cli.StreamPumper
- All Implemented Interfaces:
Runnable
Class to pump the error stream during Process's runtime. Copied from the Ant built-in task.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StreamConsumerprivate Exceptionprivate final BufferedReaderprivate static final intFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionStreamPumper(InputStream in, StreamConsumer consumer) StreamPumper(InputStream in, StreamConsumer consumer, Charset charset) privateStreamPumper(Reader in, StreamConsumer consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.As of 3.2.0, removed without replacement.private voidconsumeLine(String line) voidflush()Deprecated.As of 3.2.0, removed without replacement.voidrun()run it.Methods inherited from class org.apache.maven.shared.utils.cli.AbstractStreamHandler
disable, isDisabled, isDone, setDone, waitUntilDoneMethods 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
-
Field Details
-
in
-
consumer
-
exception
-
SIZE
private static final int SIZE- See Also:
-
-
Constructor Details
-
Method Details
-
run
public void run()run it. -
flush
Deprecated.As of 3.2.0, removed without replacement.flush. -
close
Deprecated.As of 3.2.0, removed without replacement.Close it. -
getException
- Returns:
Exception
-
consumeLine
- Throws:
IOException
-