Class SimpleStreamingProcessOwner
java.lang.Object
com.github.fracpete.processoutput4j.core.impl.SimpleStreamingProcessOwner
- All Implemented Interfaces:
StreamingProcessOwner
Simple class for streaming a process's stdout/stderr to this stdout/stderr.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns what output from the process to forward.voidprocessOutput(String line, boolean stdout) Processes the incoming line.
-
Constructor Details
-
SimpleStreamingProcessOwner
public SimpleStreamingProcessOwner()
-
-
Method Details
-
getOutputType
Returns what output from the process to forward.- Specified by:
getOutputTypein interfaceStreamingProcessOwner- Returns:
- StreamingProcessOutputType#BOTH
-
processOutput
Processes the incoming line.- Specified by:
processOutputin interfaceStreamingProcessOwner- Parameters:
line- the line to processstdout- whether stdout or stderr
-