|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
net.spy.log.LineGettingOutputStream
public abstract class LineGettingOutputStream
An output stream that processes a line at a time.
| Constructor Summary | |
|---|---|
LineGettingOutputStream()
Get an instance of LineGettingOutputStream. |
|
| Method Summary | |
|---|---|
protected abstract void |
processChunk(java.lang.String chunk)
Deal with a chunk of data. |
void |
setErr()
Redefine stderr to send messages via this thing. |
void |
setOut()
Redefine stdout to send messages via this thing. |
void |
write(byte[] b,
int offset,
int length)
Do the actual writing. |
void |
write(int b)
Write a byte. |
| Methods inherited from class java.io.OutputStream |
|---|
close, flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineGettingOutputStream()
| Method Detail |
|---|
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
protected abstract void processChunk(java.lang.String chunk)
throws java.io.IOException
chunk - the chunk of data to process
java.io.IOException - if there's a problem processing itpublic void setErr()
public void setOut()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||