Class ConsoleOutputStream
java.lang.Object
java.io.OutputStream
org.patrodyne.jvnet.basicjaxb.explore.ConsoleOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
This class extends from OutputStream to redirect output to a JTextArea.
- Author:
- Rick O'Sulllivan
-
Constructor Summary
ConstructorsConstructorDescriptionConsoleOutputStream(int points) Construct with built-in, read-only JTextArea. -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write, write
-
Constructor Details
-
ConsoleOutputStream
public ConsoleOutputStream(int points) Construct with built-in, read-only JTextArea.- Parameters:
points- The font size.
-
-
Method Details
-
getTextArea
-
write
Appends the given byte to the end of the document.- Specified by:
writein classOutputStream- Parameters:
b- The byte to be appended.- Throws:
IOException
-
clear
public void clear()Clear the text area document. -
close
Close the text area document.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException- When JTextArea document cannot be closed.
-