net.uidl
Class ErrorConsole.TextAreaOutputStream

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

public class ErrorConsole.TextAreaOutputStream
extends java.io.OutputStream


Constructor Summary
ErrorConsole.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

ErrorConsole.TextAreaOutputStream

public ErrorConsole.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