net.uidl
Class SourceConsole.TextAreaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by net.uidl.SourceConsole.TextAreaOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
SourceConsole

public class SourceConsole.TextAreaOutputStream
extends java.io.OutputStream


Constructor Summary
SourceConsole.TextAreaOutputStream(javax.swing.JTextArea textArea)
          Connect the stream to a TextArea.
 
Method Summary
 void flush()
          Add the contents in the internal buffer to the TextArea and delete the buffer.
 void write(int b)
          Write to the internal buffer.
 
Methods inherited from class java.io.OutputStream
close, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceConsole.TextAreaOutputStream

public SourceConsole.TextAreaOutputStream(javax.swing.JTextArea textArea)
Connect the stream to a TextArea.

Method Detail

flush

public void flush()
Add the contents in the internal buffer to the TextArea and delete the buffer.

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream

write

public void write(int b)
Write to the internal buffer.

Specified by:
write in class java.io.OutputStream