|
||||||||||
| 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
base class to manage streams around the execution of the Perforce command line client
| Constructor Summary | |
P4HandlerAdapter()
|
|
| Method Summary | |
abstract void |
process(java.lang.String line)
subclasses of P4HandlerAdapter must implement this routine processing of one line of stdout or of stderr |
void |
setOutput(java.lang.String p4Input)
set any data to be written to P4's stdin |
void |
setProcessErrorStream(java.io.InputStream is)
connects the handler to the stderr of the Perforce process |
void |
setProcessInputStream(java.io.OutputStream os)
connects the handler to the input stream into Perforce used indirectly by tasks requiring to send specific standard input such as p4label, p4change |
void |
setProcessOutputStream(java.io.InputStream is)
connects the handler to the stdout of the Perforce process |
void |
start()
this routine gets called by the execute routine of the Execute class it connects the PumpStreamHandler to the input/output/error streams of the process. |
void |
stop()
stops the processing of streams called from P4Base#execP4Command(String command, P4Handler handler) |
| 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 void setOutput(java.lang.String p4Input)
setOutput in interface P4Handlerp4Input - the text to write to P4's stdinpublic abstract void process(java.lang.String line)
process in interface P4Handlerline - line of stdout or stderr to process
public void start()
throws BuildException
start in interface ExecuteStreamHandlerBuildExceptionExecute.execute()public void stop()
stop in interface ExecuteStreamHandlerP4Base.execP4Command(String, P4Handler)
public void setProcessInputStream(java.io.OutputStream os)
throws java.io.IOException
setProcessInputStream in interface ExecuteStreamHandleros - the stream bringing input to the p4 executable
java.io.IOException - under unknown circumstances
public void setProcessErrorStream(java.io.InputStream is)
throws java.io.IOException
setProcessErrorStream in interface ExecuteStreamHandleris - stderr coming from Perforce
java.io.IOException - under unknown circumstances
public void setProcessOutputStream(java.io.InputStream is)
throws java.io.IOException
setProcessOutputStream in interface ExecuteStreamHandleris - stdout coming from Perforce
java.io.IOException - under unknown circumstances
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||