org.apache.tools.ant.taskdefs.optional.perforce
Class P4OutputStream
OutputStream
org.apache.tools.ant.taskdefs.optional.perforce.P4OutputStream
public class P4OutputStream
extends OutputStream
heavily inspired from LogOutputStream
this stream class calls back the P4Handler on each line of stdout or stderr read
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.
|
P4OutputStream
public P4OutputStream(P4Handler handler)
creates a new P4OutputStream for a P4Handler
handler
- the handler which will process the streams
close
public void close()
throws IOException
Writes all remaining
processBuffer
protected void processBuffer()
Converts the buffer to a string and sends it to processLine
write
public void write(int cc)
throws IOException
Write the data to the buffer and flush the buffer, if a line
separator is detected.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.