public static class ProcessExecutor.BufferingVisitor extends java.lang.Object implements ProcessExecutor.Visitor
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessExecutor.BufferingVisitor.Streams |
| Constructor and Description |
|---|
ProcessExecutor.BufferingVisitor() |
ProcessExecutor.BufferingVisitor(ProcessExecutor.BufferingVisitor.Streams stream) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getError() |
java.lang.String |
getErrorString() |
byte[] |
getOutput() |
java.lang.String |
getOutputString() |
boolean |
process(byte[] buf,
int len,
boolean isError)
Called when data is read from the process output.
|
public ProcessExecutor.BufferingVisitor()
public ProcessExecutor.BufferingVisitor(ProcessExecutor.BufferingVisitor.Streams stream)
public boolean process(byte[] buf,
int len,
boolean isError)
ProcessExecutor.VisitorThis method is called with buf set to null on EOF.
process in interface ProcessExecutor.Visitorbuf - Data from the output.len - How much data in the buffer is valid.isError - Whether data is from error output.public byte[] getOutput()
public java.lang.String getOutputString()
public byte[] getError()
public java.lang.String getErrorString()