org.apache.tools.ant.taskdefs.optional.perforce
public class P4OutputStream extends java.io.OutputStream
| Constructor and Description |
|---|
P4OutputStream(P4Handler handler)
creates a new P4OutputStream for a P4Handler
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public P4OutputStream(P4Handler handler)
handler - the handler which will process the streamspublic void write(int cc)
throws java.io.IOException
write in class java.io.OutputStreamcc - data to log (byte).java.io.IOException - IOException if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.protected void processBuffer()
processLinepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException - if an I/O error occurs.