adavid.io
Class TextAreaOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--adavid.io.TextAreaOutputStream
- public class TextAreaOutputStream
- extends java.io.OutputStream
TextAreaOutputStream
output stream to a TextArea
Constructor Summary |
TextAreaOutputStream(java.awt.TextArea ta)
constructor: output to a text area |
TextAreaOutputStream(java.awt.TextArea ta,
int size)
constructor: the text area and size of the
buffer to use (none by default) |
Method Summary |
void |
flush()
overrides OutputStream.flush() |
java.lang.String |
toString()
returns the written string |
void |
write(int b)
implements the stream: writes the byte to the string 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,
wait,
wait,
wait |
TextAreaOutputStream
public TextAreaOutputStream(java.awt.TextArea ta)
- constructor: output to a text area
TextAreaOutputStream
public TextAreaOutputStream(java.awt.TextArea ta,
int size)
- constructor: the text area and size of the
buffer to use (none by default)
write
public void write(int b)
- implements the stream: writes the byte to the string buffer
- Overrides:
- write in class java.io.OutputStream
toString
public java.lang.String toString()
- returns the written string
- Overrides:
- toString in class java.lang.Object
flush
public void flush()
- overrides OutputStream.flush()
- Overrides:
- flush in class java.io.OutputStream