Top Description Methods
org.apache.tools.ant.taskdefs

public Interface ExecuteStreamHandler

Known Direct Implementers
org.apache.tools.ant.taskdefs.JikesOutputParser, org.apache.tools.ant.taskdefs.PumpStreamHandler, org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask, org.apache.tools.ant.taskdefs.optional.ejb.BorlandDeploymentTool
Imports
java.io.IOException, .InputStream, .OutputStream

Used by Execute to handle input and output stream of subprocesses.
Since
Ant 1.2

Method Summary

Modifier and TypeMethod and Description
public void
setProcessErrorStream(InputStream
input stream to read from the error stream from the subprocess
is
)

Install a handler for the error stream of the subprocess.

public void
setProcessInputStream(OutputStream
output stream to write to the standard input stream of the subprocess
os
)

Install a handler for the input stream of the subprocess.

public void
setProcessOutputStream(InputStream
input stream to read from the error stream from the subprocess
is
)

Install a handler for the output stream of the subprocess.

public void
start()

Start handling of the streams.

public void
stop()

Stop handling of the streams - will not be restarted.

Method Detail

setProcessErrorStreamback to summary
public void setProcessErrorStream(InputStream is) throws IOException

Install a handler for the error stream of the subprocess.

Parameters
is:InputStream

input stream to read from the error stream from the subprocess

Exceptions
IOException:
on error
setProcessInputStreamback to summary
public void setProcessInputStream(OutputStream os) throws IOException

Install a handler for the input stream of the subprocess.

Parameters
os:OutputStream

output stream to write to the standard input stream of the subprocess

Exceptions
IOException:
on error
setProcessOutputStreamback to summary
public void setProcessOutputStream(InputStream is) throws IOException

Install a handler for the output stream of the subprocess.

Parameters
is:InputStream

input stream to read from the error stream from the subprocess

Exceptions
IOException:
on error
startback to summary
public void start() throws IOException

Start handling of the streams.

Exceptions
IOException:
on error
stopback to summary
public void stop()

Stop handling of the streams - will not be restarted.