org.apache.tools.ant.taskdefs.optional.perforce
public abstract class P4HandlerAdapter extends Object implements P4Handler
Method Summary | |
---|---|
abstract void | process(String line)
subclasses of P4HandlerAdapter must implement this routine
processing of one line of stdout or of stderr |
void | setOutput(String p4Input)
set any data to be written to P4's stdin |
void | setProcessErrorStream(InputStream is)
connects the handler to the stderr of the Perforce process |
void | setProcessInputStream(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(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) |
Parameters: line line of stdout or stderr to process
Parameters: p4Input the text to write to P4's stdin
Parameters: is stderr coming from Perforce
Throws: IOException under unknown circumstances
Parameters: os the stream bringing input to the p4 executable
Throws: IOException under unknown circumstances
Parameters: is stdout coming from Perforce
Throws: IOException under unknown circumstances
Throws: BuildException
See Also: Execute
See Also: P4Base