org.apache.tools.ant.taskdefs
Interface ExecuteStreamHandler
- P4Handler
- BorlandDeploymentTool, CCMCreateTask, JikesOutputParser, LogStreamHandler, MMetricsStreamHandler, P4HandlerAdapter, P4Submit.P4SubmitAdapter, PumpStreamHandler, SimpleP4OutputHandler
public interface ExecuteStreamHandler
Used by Execute
to handle input and output stream of
subprocesses.
- Ant 1.2
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.
|
setProcessErrorStream
public void setProcessErrorStream(InputStream is)
throws IOException
Install a handler for the error stream of the subprocess.
is
- input stream to read from the error stream from the subprocess
setProcessInputStream
public void setProcessInputStream(OutputStream os)
throws IOException
Install a handler for the input stream of the subprocess.
os
- output stream to write to the standard input stream of the
subprocess
setProcessOutputStream
public void setProcessOutputStream(InputStream is)
throws IOException
Install a handler for the output stream of the subprocess.
is
- input stream to read from the error stream from the subprocess
start
public void start()
throws IOException
Start handling of the streams.
stop
public void stop()
Stop handling of the streams - will not be restarted.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.