net.spy.log
Class MessageOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended bynet.spy.log.LineGettingOutputStream
          extended bynet.spy.log.MessageOutputStream

public class MessageOutputStream
extends LineGettingOutputStream

Send SpyMessages when stuff goes to this OutputStream.


Constructor Summary
MessageOutputStream(MCastLog mcl)
          Get an instance of MessageOutputStream.
 
Method Summary
 void close()
          Clean up.
static void main(String[] args)
          Test.
protected  void processChunk(String chunk)
          Send this chunk as a SpyMessage.
 
Methods inherited from class net.spy.log.LineGettingOutputStream
setErr, setOut, write, write
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageOutputStream

public MessageOutputStream(MCastLog mcl)
Get an instance of MessageOutputStream.

Method Detail

processChunk

protected void processChunk(String chunk)
                     throws IOException
Send this chunk as a SpyMessage.

Specified by:
processChunk in class LineGettingOutputStream
Parameters:
chunk -
Throws:
IOException

close

public void close()
           throws IOException
Clean up.

Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Test.

Throws:
Exception