|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.optional.perforce.P4HandlerAdapter
Constructor Summary | |
P4HandlerAdapter()
|
Method Summary | |
abstract void |
process(java.lang.String line)
|
void |
setOutput(java.lang.String p4Input)
|
void |
setProcessErrorStream(java.io.InputStream is)
Install a handler for the error stream of the subprocess. |
void |
setProcessInputStream(java.io.OutputStream os)
Install a handler for the input stream of the subprocess. |
void |
setProcessOutputStream(java.io.InputStream is)
Install a handler for the output stream of the subprocess. |
void |
start()
Start handling of the streams. |
void |
stop()
Stop handling of the streams - will not be restarted. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public P4HandlerAdapter()
Method Detail |
public abstract void process(java.lang.String line)
process
in interface P4Handler
public void setOutput(java.lang.String p4Input)
setOutput
in interface P4Handler
public void start() throws BuildException
ExecuteStreamHandler
start
in interface ExecuteStreamHandler
BuildException
public void setProcessInputStream(java.io.OutputStream os) throws java.io.IOException
ExecuteStreamHandler
setProcessInputStream
in interface ExecuteStreamHandler
os
- output stream to write to the standard input stream of the
subprocess
java.io.IOException
public void setProcessErrorStream(java.io.InputStream is) throws java.io.IOException
ExecuteStreamHandler
setProcessErrorStream
in interface ExecuteStreamHandler
is
- input stream to read from the error stream from the subprocess
java.io.IOException
public void setProcessOutputStream(java.io.InputStream is) throws java.io.IOException
ExecuteStreamHandler
setProcessOutputStream
in interface ExecuteStreamHandler
is
- input stream to read from the error stream from the subprocess
java.io.IOException
public void stop()
ExecuteStreamHandler
stop
in interface ExecuteStreamHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |