common.io
Interface ProcessExecutor.Visitor

All Known Implementing Classes:
ProcessExecutor.BufferingVisitor
Enclosing class:
ProcessExecutor

public static interface ProcessExecutor.Visitor

Interface defining a visitor that will be called with data read from the child process's output.


Method Summary
 boolean process(byte[] buf, int len, boolean isError)
          Called when data is read from the process output.
 

Method Detail

process

boolean process(byte[] buf,
                int len,
                boolean isError)
Called when data is read from the process output.

This method is called with buf set to null on EOF.

Parameters:
buf - Data from the output.
len - How much data in the buffer is valid.
isError - Whether data is from error output.
Returns:
Whether to continue reading the output.