API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.ant.taskdefs. PumpStreamHandler View Source
Author(s)
Since
Ant 1.2
Version
Serial
Hierarchy
 Object
      PumpStreamHandler
Implements
 ExecuteStreamHandler
Subclasses
Description
public class PumpStreamHandler
  Copies standard output and error of subprocesses to standard output and error of the parent process.
See also:   
Constructors
public PumpStreamHandler ()
Construct a new PumpStreamHandler.
public PumpStreamHandler (java.io.OutputStream outAndErr)
  Construct a new PumpStreamHandler.
public PumpStreamHandler (java.io.OutputStream out, java.io.OutputStream err)
  Construct a new PumpStreamHandler.
public PumpStreamHandler (java.io.OutputStream out, java.io.OutputStream err, java.io.InputStream input)
  Construct a new PumpStreamHandler.
Methods
Hide/Show inherited methods
pack-private StreamPumper 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.
protected void createProcessErrorPump (java.io.InputStream is, java.io.OutputStream os)
  Create the pump to handle error output.
protected void createProcessOutputPump (java.io.InputStream is, java.io.OutputStream os)
  Create the pump to handle process output.
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.
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.
protected java.io.OutputStream getErr ()
  Get the error stream.
protected java.io.OutputStream getOut ()
  Get the output stream.
public void setProcessErrorStream (java.io.InputStream is) [Specified in ExecuteStreamHandler]
  Set the InputStream from which to read the standard error of the process.
public void setProcessInputStream (java.io.OutputStream os) [Specified in ExecuteStreamHandler]
  Set the OutputStream by means of which input can be sent to the process.
public void setProcessOutputStream (java.io.InputStream is) [Specified in ExecuteStreamHandler]
  Set the InputStream from which to read the standard output of the process.
public void start () [Specified in ExecuteStreamHandler]
Start the Threads.
public void stop () [Specified in ExecuteStreamHandler]
Stop pumping the streams.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar