pack-privateStreamPumper createInputPump
(java.io.InputStream is, java.io.OutputStream os, boolean closeWhenExhausted)
Creates a stream pumper to copy the given input stream to the
given output stream.
Creates a stream pumper to copy the given input stream to the given output stream. Used for standard input.
Since:
Ant 1.6.3
protected void
createProcessErrorPump
(java.io.InputStream is, java.io.OutputStream os)
Create the pump to handle error output.
Create the pump to handle error output.
Parameters: - is - the input stream to copy from.
- os - the output stream to copy to.
protected void
createProcessOutputPump
(java.io.InputStream is, java.io.OutputStream os)
Create the pump to handle process output.
Create the pump to handle process output.
Parameters: - is - the InputStream.
- os - the OutputStream.
protected java.lang.Thread
createPump
(java.io.InputStream is, java.io.OutputStream os)
Creates a stream pumper to copy the given input stream to the
given output stream.
Creates a stream pumper to copy the given input stream to the given output stream.
Returns:
a thread object that does the pumping.
Parameters: - is - the input stream to copy from.
- os - the output stream to copy to.
protected java.lang.Thread
createPump
(java.io.InputStream is, java.io.OutputStream os, boolean closeWhenExhausted)
Creates a stream pumper to copy the given input stream to the
given output stream.
Creates a stream pumper to copy the given input stream to the given output stream.
Returns:
a thread object that does the pumping.
Parameters: - is - the input stream to copy from.
- os - the output stream to copy to.
- closeWhenExhausted - if true close the inputstream.
protected java.io.OutputStream
getErr
()
Get the error stream.
Get the error stream.
Returns:OutputStream.
protected java.io.OutputStream
getOut
()
Get the output stream.
Get the output stream.
Returns:OutputStream.
public void
setProcessErrorStream
(java.io.InputStream is)
[Specified in ExecuteStreamHandler]
Set the InputStream from which to read the
standard error of the process.
Set the InputStream from which to read the standard error of the process.
Parameters: - is - the InputStream.
public void
setProcessInputStream
(java.io.OutputStream os)
[Specified in ExecuteStreamHandler]
Set the OutputStream by means of which
input can be sent to the process.
Set the OutputStream by means of which input can be sent to the process.
Parameters: - os - the OutputStream.
public void
setProcessOutputStream
(java.io.InputStream is)
[Specified in ExecuteStreamHandler]
Set the InputStream from which to read the
standard output of the process.
Set the InputStream from which to read the standard output of the process.
Parameters: - is - the InputStream.