org.apache.tools.ant.taskdefs.optional.perforce
public class P4OutputStream extends OutputStream
Constructor Summary | |
---|---|
P4OutputStream(P4Handler handler)
creates a new P4OutputStream for a P4Handler |
Method Summary | |
---|---|
void | close()
Writes all remaining |
protected void | processBuffer()
Converts the buffer to a string and sends it to processLine |
void | write(int cc)
Write the data to the buffer and flush the buffer, if a line
separator is detected.
|
Parameters: handler the handler which will process the streams
Throws: IOException if an I/O error occurs.
processLine
Parameters: cc data to log (byte).
Throws: IOException IOException if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.