Package ptolemy.actor.gui
Class Console.ConsoleFrame.MyByteArrayOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- ptolemy.actor.gui.Console.ConsoleFrame.MyByteArrayOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- Console.ConsoleFrame
public static class Console.ConsoleFrame.MyByteArrayOutputStream extends java.io.ByteArrayOutputStream
Customized ByteArrayOutputStream. Refresh the frame whenever new print-outs come in.
-
-
Constructor Summary
Constructors Constructor Description MyByteArrayOutputStream(javax.swing.JTextArea textArea, Tableau tableau)
Create an output stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Constructor Detail
-
MyByteArrayOutputStream
public MyByteArrayOutputStream(javax.swing.JTextArea textArea, Tableau tableau)
Create an output stream.- Parameters:
textArea
- The textarea that gets updated.tableau
- The tableau containing the text area.
-
-