| java.lang.Object java.io.OutputStream org.apache.tools.ant.taskdefs.optional.perforce.P4OutputStream
P4OutputStream | public class P4OutputStream extends OutputStream (Code) | | heavily inspired from LogOutputStream
this stream class calls back the P4Handler on each line of stdout or stderr read
|
Method Summary | |
public void | close() | protected void | processBuffer() | public void | write(int cc) Write the data to the buffer and flush the buffer, if a line
separator is detected.
Parameters: cc - data to log (byte). throws: IOException - IOException if an I/O error occurs. |
P4OutputStream | public P4OutputStream(P4Handler handler)(Code) | | creates a new P4OutputStream for a P4Handler
Parameters: handler - the handler which will process the streams |
processBuffer | protected void processBuffer()(Code) | | Converts the buffer to a string and sends it to processLine
|
write | public void write(int cc) throws IOException(Code) | | Write the data to the buffer and flush the buffer, if a line
separator is detected.
Parameters: cc - data to log (byte). throws: IOException - IOException if an I/O error occurs. In particular,an IOException may be thrown if theoutput stream has been closed. |
|
|