jeco.gui.util
Class TextAreaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by jeco.gui.util.TextAreaOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class TextAreaOutputStream
extends java.io.OutputStream


Constructor Summary
TextAreaOutputStream(javax.swing.JTextArea control)
          Creates a new instance of TextAreaOutputStream which writes to the specified instance of javax.swing.JTextArea control.
 
Method Summary
 void write(int b)
          Writes the specified byte as a character to the javax.swing.JTextArea.
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaOutputStream

public TextAreaOutputStream(javax.swing.JTextArea control)
Creates a new instance of TextAreaOutputStream which writes to the specified instance of javax.swing.JTextArea control.

Parameters:
control - A reference to the javax.swing.JTextArea control to which the output must be redirected to.
Method Detail

write

public void write(int b)
           throws java.io.IOException
Writes the specified byte as a character to the javax.swing.JTextArea.

Specified by:
write in class java.io.OutputStream
Parameters:
b - The byte to be written as character to the JTextArea.
Throws:
java.io.IOException