|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler
public class CaptureStreamHandler
Implements ExecuteStreamHandler to capture the output of a Execute to an array of strings
| Constructor Summary | |
|---|---|
CaptureStreamHandler()
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getOutput()
|
static java.lang.String[] |
run(java.lang.String[] cmdline)
Runs an executable and captures the output in a String array |
void |
setProcessErrorStream(java.io.InputStream is)
Install a handler for the error stream of the subprocess. |
void |
setProcessInputStream(java.io.OutputStream os)
Install a handler for the input stream of the subprocess. |
void |
setProcessOutputStream(java.io.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CaptureStreamHandler()
| Method Detail |
|---|
public static java.lang.String[] run(java.lang.String[] cmdline)
cmdline - command line arguments
public java.lang.String[] getOutput()
public void setProcessErrorStream(java.io.InputStream is)
throws java.io.IOException
setProcessErrorStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandleris - input stream to read from the error stream from the
subprocess
java.io.IOException
public void setProcessInputStream(java.io.OutputStream os)
throws java.io.IOException
setProcessInputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandleros - output stream to write to the standard input stream of the
subprocess
java.io.IOException
public void setProcessOutputStream(java.io.InputStream is)
throws java.io.IOException
setProcessOutputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandleris - input stream to read from the error stream from the
subprocess
java.io.IOException
public void start()
throws java.io.IOException
start in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandlerjava.io.IOExceptionpublic void stop()
stop in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||