public class TeeProcessOutputHandler extends java.lang.Object implements ProcessOutputHandler
Constructor and Description |
---|
TeeProcessOutputHandler(ProcessOutputHandler... handlers)
Creates a new output handler.
|
Modifier and Type | Method and Description |
---|---|
ProcessOutput |
createOutput()
Creates a ProcessOutput to be used by the process executor.
|
void |
handleOutput(ProcessOutput processOutput)
Handles the output after the process has run.
|
public TeeProcessOutputHandler(@NonNull ProcessOutputHandler... handlers)
handlers
- the handlers; individual handlers may be null
and will be
ignoredpublic void handleOutput(@NonNull ProcessOutput processOutput) throws ProcessException
ProcessOutputHandler
ProcessExecutor.execute(ProcessInfo, ProcessOutputHandler)
returns.handleOutput
in interface ProcessOutputHandler
processOutput
- the process output to handleProcessException
@NonNull public ProcessOutput createOutput()
ProcessOutputHandler
createOutput
in interface ProcessOutputHandler