Interface ExecuteStreamHandler

All Known Implementing Classes:
BorlandDeploymentTool, CCMCreateTask, JikesOutputParser, JUnitTask.JUnitLogStreamHandler, LogStreamHandler, PumpStreamHandler

public interface ExecuteStreamHandler
Used by Execute to handle input and output stream of subprocesses.
Since:
Ant 1.2
  • Method Details

    • setProcessInputStream

      void setProcessInputStream(OutputStream os) throws IOException
      Install a handler for the input stream of the subprocess.
      Parameters:
      os - output stream to write to the standard input stream of the subprocess
      Throws:
      IOException - on error
    • setProcessErrorStream

      void setProcessErrorStream(InputStream is) throws IOException
      Install a handler for the error stream of the subprocess.
      Parameters:
      is - input stream to read from the error stream from the subprocess
      Throws:
      IOException - on error
    • setProcessOutputStream

      void setProcessOutputStream(InputStream is) throws IOException
      Install a handler for the output stream of the subprocess.
      Parameters:
      is - input stream to read from the error stream from the subprocess
      Throws:
      IOException - on error
    • start

      void start() throws IOException
      Start handling of the streams.
      Throws:
      IOException - on error
    • stop

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