JET

edu.utep.cs.et.gui.output
Class DefaultOutputer.TextAreaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by edu.utep.cs.et.gui.output.DefaultOutputer.TextAreaOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
DefaultOutputer

private static class DefaultOutputer.TextAreaOutputStream
extends OutputStream

A specialized output stream class to turn a text area into an output stream. This class allows one to pass a text area to external tools, such as the testing tool, to receive error messages.

Author:
Yoonsik Cheon

Field Summary
private  JTextArea textarea
          The text area where the output goes.
 
Constructor Summary
DefaultOutputer.TextAreaOutputStream(JTextArea textarea)
           
 
Method Summary
 void write(int b)
          Writes the specified byte to this output stream.
 
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
 

Field Detail

textarea

private JTextArea textarea
The text area where the output goes.

Constructor Detail

DefaultOutputer.TextAreaOutputStream

public DefaultOutputer.TextAreaOutputStream(JTextArea textarea)
Method Detail

write

public void write(int b)
Writes the specified byte to this output stream.

Specified by:
write in class OutputStream

JET

JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.