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 StreamConsumer
private Exception
private final BufferedReader
private static final int
Fields 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) private
StreamPumper
(Reader in, StreamConsumer consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.As of 3.2.0, removed without replacement.private void
consumeLine
(String line) void
flush()
Deprecated.As of 3.2.0, removed without replacement.void
run()
run it.Methods inherited from class org.apache.maven.shared.utils.cli.AbstractStreamHandler
disable, isDisabled, isDone, setDone, waitUntilDone
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
-
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
-