| java.lang.Object org.apache.tools.ant.taskdefs.PumpStreamHandler
All known Subclasses: org.apache.tools.ant.taskdefs.cvslib.RedirectingStreamHandler, org.apache.tools.ant.taskdefs.LogStreamHandler,
PumpStreamHandler | public class PumpStreamHandler implements ExecuteStreamHandler(Code) | | Copies standard output and error of subprocesses to standard output and
error of the parent process.
since: Ant 1.2 |
PumpStreamHandler | public PumpStreamHandler(OutputStream out, OutputStream err, InputStream input)(Code) | | Construct a new PumpStreamHandler .
Parameters: out - the output OutputStream . Parameters: err - the error OutputStream . Parameters: input - the input InputStream . |
PumpStreamHandler | public PumpStreamHandler(OutputStream out, OutputStream err)(Code) | | Construct a new PumpStreamHandler .
Parameters: out - the output OutputStream . Parameters: err - the error OutputStream . |
PumpStreamHandler | public PumpStreamHandler(OutputStream outAndErr)(Code) | | Construct a new PumpStreamHandler .
Parameters: outAndErr - the output/error OutputStream . |
PumpStreamHandler | public PumpStreamHandler()(Code) | | Construct a new PumpStreamHandler .
|
createInputPump | StreamPumper createInputPump(InputStream is, OutputStream os, boolean closeWhenExhausted)(Code) | | Creates a stream pumper to copy the given input stream to the
given output stream. Used for standard input.
since: Ant 1.6.3 |
createProcessErrorPump | protected void createProcessErrorPump(InputStream is, OutputStream os)(Code) | | Create the pump to handle error output.
Parameters: is - the input stream to copy from. Parameters: os - the output stream to copy to. |
createProcessOutputPump | protected void createProcessOutputPump(InputStream is, OutputStream os)(Code) | | Create the pump to handle process output.
Parameters: is - the InputStream . Parameters: os - the OutputStream . |
createPump | protected Thread createPump(InputStream is, OutputStream os)(Code) | | Creates a stream pumper to copy the given input stream to the
given output stream.
Parameters: is - the input stream to copy from. Parameters: os - the output stream to copy to. a thread object that does the pumping. |
createPump | protected Thread createPump(InputStream is, OutputStream os, boolean closeWhenExhausted)(Code) | | Creates a stream pumper to copy the given input stream to the
given output stream.
Parameters: is - the input stream to copy from. Parameters: os - the output stream to copy to. Parameters: closeWhenExhausted - if true close the inputstream. a thread object that does the pumping. |
setProcessErrorStream | public void setProcessErrorStream(InputStream is)(Code) | | Set the InputStream from which to read the
standard error of the process.
Parameters: is - the InputStream . |
setProcessInputStream | public void setProcessInputStream(OutputStream os)(Code) | | Set the OutputStream by means of which
input can be sent to the process.
Parameters: os - the OutputStream . |
setProcessOutputStream | public void setProcessOutputStream(InputStream is)(Code) | | Set the InputStream from which to read the
standard output of the process.
Parameters: is - the InputStream . |
start | public void start()(Code) | | Start the Thread s.
|
stop | public void stop()(Code) | | Stop pumping the streams.
|
|
|