Package org.apache.tools.ant.taskdefs
Interface ExecuteStreamHandler
- 
- All Known Implementing Classes:
- BorlandDeploymentTool,- CCMCreateTask,- JikesOutputParser,- JUnitTask.JUnitLogStreamHandler,- LogStreamHandler,- PumpStreamHandler
 
 public interface ExecuteStreamHandlerUsed byExecuteto handle input and output stream of subprocesses.- Since:
- Ant 1.2
 
- 
- 
Method SummaryModifier and Type Method Description voidsetProcessErrorStream(java.io.InputStream is)Install a handler for the error stream of the subprocess.voidsetProcessInputStream(java.io.OutputStream os)Install a handler for the input stream of the subprocess.voidsetProcessOutputStream(java.io.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- 
setProcessInputStreamvoid setProcessInputStream(java.io.OutputStream os) throws java.io.IOExceptionInstall a handler for the input stream of the subprocess.- Parameters:
- os- output stream to write to the standard input stream of the subprocess
- Throws:
- java.io.IOException- on error
 
 - 
setProcessErrorStreamvoid setProcessErrorStream(java.io.InputStream is) throws java.io.IOExceptionInstall a handler for the error stream of the subprocess.- Parameters:
- is- input stream to read from the error stream from the subprocess
- Throws:
- java.io.IOException- on error
 
 - 
setProcessOutputStreamvoid setProcessOutputStream(java.io.InputStream is) throws java.io.IOExceptionInstall a handler for the output stream of the subprocess.- Parameters:
- is- input stream to read from the error stream from the subprocess
- Throws:
- java.io.IOException- on error
 
 - 
startvoid start() throws java.io.IOExceptionStart handling of the streams.- Throws:
- java.io.IOException- on error
 
 - 
stopvoid stop() Stop handling of the streams - will not be restarted.
 
- 
 
-