ubc.cs.JLog.Applet
Class gOutputStreamTextArea

java.lang.Object
  extended by java.io.OutputStream
      extended by ubc.cs.JLog.Applet.gOutputStreamTextArea
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class gOutputStreamTextArea
extends java.io.OutputStream

This class represents an OuputStream which directs to a TextArea.

Author:
Glendon Holst

Field Summary
protected  jPrologServiceBroadcaster addedText
           
protected  java.awt.TextArea text
           
 
Constructor Summary
gOutputStreamTextArea(java.awt.TextArea t)
           
 
Method Summary
 void addTextAddedListener(jPrologServiceListener l)
           
 void close()
           
 void flush()
           
 void removeTextAddedListener(jPrologServiceListener l)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

protected java.awt.TextArea text

addedText

protected jPrologServiceBroadcaster addedText
Constructor Detail

gOutputStreamTextArea

public gOutputStreamTextArea(java.awt.TextArea t)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

addTextAddedListener

public void addTextAddedListener(jPrologServiceListener l)

removeTextAddedListener

public void removeTextAddedListener(jPrologServiceListener l)