public static interface ProcessExecutor.Visitor
Modifier and Type | Method and Description |
---|---|
boolean |
process(byte[] buf,
int len,
boolean isError)
Called when data is read from the process output.
|
boolean process(byte[] buf, int len, boolean isError)
This method is called with buf set to null on EOF.
buf
- Data from the output.len
- How much data in the buffer is valid.isError
- Whether data is from error output.