public abstract class LineProcOutputStream extends java.io.OutputStream implements CallBackStringParam
Title: LineProcOutputStream
Description: Abstract class that can be dropped in, in place of any OutputStream class (stdout for example), to handle character-stream data as lines. A user-supplied call-back method is handed one line of data at a time.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
EOL
String defining what newline char(s) looks like.
|
protected int |
EOL_LEN
Length of newline char(s).
|
protected java.lang.StringBuffer |
lineBuffer
Where we keep the current line.
|
| Constructor and Description |
|---|
LineProcOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Send buffer content to call-back method (if not empty).
|
void |
write(int ch)
Enters the given character into the output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcallBackMethodprotected final java.lang.StringBuffer lineBuffer
protected final java.lang.String EOL
protected final int EOL_LEN
public void write(int ch)
write in class java.io.OutputStreamch - the character to enter.public void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStream