org.purl.sword.client
Class DebugOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.purl.sword.client.DebugOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class DebugOutputStream
extends OutputStream

A stream that will write any output to the specified panel.

Author:
Neil Taylor

Constructor Summary
DebugOutputStream(MessageOutputPanel panel)
          Create a new instance and specify the panel that will receive the output.
 
Method Summary
 void write(int arg0)
          Override the write method from OutputStream.
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugOutputStream

public DebugOutputStream(MessageOutputPanel panel)
Create a new instance and specify the panel that will receive the output.

Parameters:
panel - The panel.
Method Detail

write

public void write(int arg0)
           throws IOException
Override the write method from OutputStream. Capture the char and send it to the panel.

Specified by:
write in class OutputStream
Parameters:
arg0 - The output character, expressed as an integer.
Throws:
IOException
See Also:
OutputStream.write(int)


Copyright © 2011 DuraSpace. All Rights Reserved.