|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.isti.util.LineProcOutputStream
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.
| Field Summary | |
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 Summary | |
LineProcOutputStream()
|
|
| Method Summary | |
void |
flush()
Send buffer content to call-back method (if not empty). |
void |
write(int ch)
Enters the given character into the output stream. |
| Methods inherited from class java.io.OutputStream |
close, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.isti.util.CallBackStringParam |
callBackMethod |
| Field Detail |
protected final java.lang.StringBuffer lineBuffer
protected final java.lang.String EOL
protected final int EOL_LEN
| Constructor Detail |
public LineProcOutputStream()
| Method Detail |
public void write(int ch)
ch - the character to enter.public void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||