org.purl.sword.client
Class DebugOutputStream
java.lang.Object
java.io.OutputStream
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
|
Method Summary |
void |
write(int arg0)
Override the write method from OutputStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugOutputStream
public DebugOutputStream(MessageOutputPanel panel)
- Create a new instance and specify the panel that will receive the output.
- Parameters:
panel - The panel.
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.