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.OutputStream
cc
- 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()
processLine
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
- if an I/O error occurs.