| java.lang.Object abbot.util.ProcessOutputHandler
ProcessOutputHandler | public class ProcessOutputHandler (Code) | | Provides handling of process output/error streams.
|
Inner Class :public static class ProcessAbnormalExitException extends IOException | |
Method Summary | |
public static String | exec(String[] command) Returns the output of the given command as a String. | public static String | exec(String[] command, String[] environment) Returns the output of the given command as a String. | public static String | exec(String[] command, String[] environment, File dir) Returns the output of the given command as a String. | public String | getError() | protected void | handleError(byte[] buf, int count) Override this method to handle stderr output. | protected void | handleOutput(byte[] buf, int count) Override this method to handle stdout output. | public synchronized void | setProcess(Process p) | public synchronized void | waitFor() |
ProcessOutputHandler | public ProcessOutputHandler()(Code) | | |
handleError | protected void handleError(byte[] buf, int count)(Code) | | Override this method to handle stderr output. The default
implementation does nothing.
|
handleOutput | protected void handleOutput(byte[] buf, int count)(Code) | | Override this method to handle stdout output. The default
implementation does nothing.
|
|
|