From 683d490074d93baa8a47db7ec43b7bd31145a12a Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Thu, 5 Nov 2009 23:00:15 +0100 Subject: Tar file expanded and committed --- .../cpptasks/compiler/CaptureStreamHandler.html | 425 +++++++++++++++++++++ 1 file changed, 425 insertions(+) create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html (limited to 'site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html') diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html new file mode 100644 index 0000000..7c4da01 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html @@ -0,0 +1,425 @@ + + + + + + + +CaptureStreamHandler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CaptureStreamHandler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler
+
+
+
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
+
public class CaptureStreamHandler
extends java.lang.Object
implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+ + +

+Implements ExecuteStreamHandler to capture the output of a Execute to an + array of strings +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+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
+ voidsetProcessErrorStream(java.io.InputStream is) + +
+          Install a handler for the error stream of the subprocess.
+ voidsetProcessInputStream(java.io.OutputStream os) + +
+          Install a handler for the input stream of the subprocess.
+ voidsetProcessOutputStream(java.io.InputStream is) + +
+          Install a handler for the output stream of the subprocess.
+ voidstart() + +
+          Start handling of the streams.
+ voidstop() + +
+          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
+ +

+CaptureStreamHandler

+
+public CaptureStreamHandler()
+
+
+ + + + + + + + +
+Method Detail
+ +

+run

+
+public static java.lang.String[] run(java.lang.String[] cmdline)
+
+
Runs an executable and captures the output in a String array +

+

+
+
+
+
Parameters:
cmdline - command line arguments +
Returns:
output of process
+
+
+
+ +

+getOutput

+
+public java.lang.String[] getOutput()
+
+
+
+
+
+
+
+
+
+ +

+setProcessErrorStream

+
+public void setProcessErrorStream(java.io.InputStream is)
+                           throws java.io.IOException
+
+
Install a handler for the error stream of the subprocess. +

+

+
Specified by:
setProcessErrorStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
Parameters:
is - input stream to read from the error stream from the + subprocess +
Throws: +
java.io.IOException
+
+
+
+ +

+setProcessInputStream

+
+public void setProcessInputStream(java.io.OutputStream os)
+                           throws java.io.IOException
+
+
Install a handler for the input stream of the subprocess. +

+

+
Specified by:
setProcessInputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
Parameters:
os - output stream to write to the standard input stream of the + subprocess +
Throws: +
java.io.IOException
+
+
+
+ +

+setProcessOutputStream

+
+public void setProcessOutputStream(java.io.InputStream is)
+                            throws java.io.IOException
+
+
Install a handler for the output stream of the subprocess. +

+

+
Specified by:
setProcessOutputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
Parameters:
is - input stream to read from the error stream from the + subprocess +
Throws: +
java.io.IOException
+
+
+
+ +

+start

+
+public void start()
+           throws java.io.IOException
+
+
Start handling of the streams. +

+

+
Specified by:
start in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+stop

+
+public void stop()
+
+
Stop handling of the streams - will not be restarted. +

+

+
Specified by:
stop in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + -- cgit v1.2.3