public class CachedProcessOutputHandler extends BaseProcessOutputHandler
ProcessExecutor.execute(ProcessInfo, ProcessOutputHandler)
.
This can only be used once since only a single process output is kept for query after
the process is run.BaseProcessOutputHandler.BaseProcessOutput
Constructor and Description |
---|
CachedProcessOutputHandler() |
Modifier and Type | Method and Description |
---|---|
ProcessOutput |
createOutput()
Creates a ProcessOutput to be used by the process executor.
|
BaseProcessOutputHandler.BaseProcessOutput |
getProcessOutput() |
void |
handleOutput(ProcessOutput processOutput)
Handles the output after the process has run.
|
public BaseProcessOutputHandler.BaseProcessOutput getProcessOutput()
@NonNull public ProcessOutput createOutput()
ProcessOutputHandler
createOutput
in interface ProcessOutputHandler
createOutput
in class BaseProcessOutputHandler
public void handleOutput(@NonNull ProcessOutput processOutput) throws ProcessException
ProcessOutputHandler
ProcessExecutor.execute(ProcessInfo, ProcessOutputHandler)
returns.processOutput
- the process output to handleProcessException