|
|||||||||||
| 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
An output stream that processes a line at a time.
| Constructor Summary | |
LineGettingOutputStream()
Get an instance of LineGettingOutputStream. |
|
| Method Summary | |
protected abstract void |
processChunk(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 IOException
IOException
public void write(byte[] b,
int offset,
int length)
throws IOException
IOException
protected abstract void processChunk(String chunk)
throws IOException
chunk - the chunk of data to process
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 | ||||||||||