net.sf.antcontrib.cpptasks.compiler
public class CaptureStreamHandler extends Object implements ExecuteStreamHandler
| Constructor Summary | |
|---|---|
| CaptureStreamHandler() | |
| Method Summary | |
|---|---|
| String[] | getOutput() |
| static String[] | run(String[] cmdline)
Runs an executable and captures the output in a String array
|
| void | setProcessErrorStream(InputStream is)
Install a handler for the error stream of the subprocess.
|
| void | setProcessInputStream(OutputStream os)
Install a handler for the input stream of the subprocess.
|
| void | setProcessOutputStream(InputStream is)
Install a handler for the output stream of the subprocess.
|
| void | start()
Start handling of the streams. |
| void | stop()
Stop handling of the streams - will not be restarted. |
Parameters: cmdline command line arguments
Returns: output of process
Parameters: is input stream to read from the error stream from the subprocess
Parameters: os output stream to write to the standard input stream of the subprocess
Parameters: is input stream to read from the error stream from the subprocess