org.apache.tools.ant.taskdefs

Interface ExecuteStreamHandler

public interface ExecuteStreamHandler

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

Since: Ant 1.2

Method Summary
voidsetProcessErrorStream(InputStream is)
Install a handler for the error stream of the subprocess.
voidsetProcessInputStream(OutputStream os)
Install a handler for the input stream of the subprocess.
voidsetProcessOutputStream(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.

Method Detail

setProcessErrorStream

public void setProcessErrorStream(InputStream is)
Install a handler for the error stream of the subprocess.

Parameters: is input stream to read from the error stream from the subprocess

setProcessInputStream

public void setProcessInputStream(OutputStream os)
Install a handler for the input stream of the subprocess.

Parameters: os output stream to write to the standard input stream of the subprocess

setProcessOutputStream

public void setProcessOutputStream(InputStream is)
Install a handler for the output stream of the subprocess.

Parameters: is input stream to read from the error stream from the subprocess

start

public void start()
Start handling of the streams.

stop

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