Package org.purl.sword.client
Class DebugOutputStream
java.lang.Object
java.io.OutputStream
org.purl.sword.client.DebugOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
A stream that will write any output to the specified panel.
- Author:
- Neil Taylor
-
Constructor Summary
ConstructorDescriptionCreate a new instance and specify the panel that will receive the output. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(int arg0) Override the write method from OutputStream.Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
Constructor Details
-
DebugOutputStream
Create a new instance and specify the panel that will receive the output.- Parameters:
panel
- The panel.
-
-
Method Details
-
write
Override the write method from OutputStream. Capture the char and send it to the panel.- Specified by:
write
in classOutputStream
- Parameters:
arg0
- The output character, expressed as an integer.- Throws:
IOException
- See Also:
-