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