Class StreamingProcessOutput
java.lang.Object
com.github.fracpete.processoutput4j.output.AbstractProcessOutput
com.github.fracpete.processoutput4j.output.StreamingProcessOutput
- All Implemented Interfaces:
Serializable
Streams the data into the owning
StreamingProcessOwner object.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StreamingProcessOwnerthe owner.private static final longFields inherited from class AbstractProcessOutput
m_Command, m_Environment, m_ExitCode, m_Process, m_ReaderStdErr, m_ReaderStdOut, m_RunnableTimeout, m_TimedOut, m_TimeOut -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the process output with the specified owning object. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractProcessReaderConfigures the thread for stderr.protected AbstractProcessReaderConfigures the thread for stdout.static voidAllows the execution of a command through this process output scheme.Methods inherited from class AbstractProcessOutput
configureTimeOutMonitor, destroy, flush, getCommand, getEnvironment, getExitCode, getProcess, getTimeOut, hasSucceeded, hasTimedOut, initialize, monitor, monitor, monitor, monitor, monitor, setTimeOut, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
m_Owner
the owner.
-
-
Constructor Details
-
StreamingProcessOutput
Initializes the process output with the specified owning object.- Parameters:
owner- the owning object
-
-
Method Details
-
configureStdErr
Configures the thread for stderr.- Specified by:
configureStdErrin classAbstractProcessOutput- Returns:
- the configured thread, not yet started
-
configureStdOut
Configures the thread for stdout.- Specified by:
configureStdOutin classAbstractProcessOutput- Returns:
- the configured thread, not yet started
-
main
-