Class ConsoleOutput.CustomOutputStream
java.lang.Object
java.io.OutputStream
nl.tudelft.simulation.dsol.swing.gui.ConsoleOutput.CustomOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- ConsoleOutput
The custom output stream that writes to the text pane.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomOutputStream(JTextArea textArea, PrintStream standardOut) Create the custom writer. -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
Constructor Details
-
CustomOutputStream
Create the custom writer.- Parameters:
textArea- JTextArea; the text area to write tostandardOut- PrintSTream; the original stdout
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-