Package com.lowagie.rups.io
Class TextAreaOutputStream
java.lang.Object
java.io.OutputStream
com.lowagie.rups.io.TextAreaOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Everything writing to this OutputStream will be shown in a JTextArea.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Field Details
-
text
The text area to which we want to write. -
offset
protected int offsetKeeps track of the offset of the text in the text area.
-
-
Constructor Details
-
TextAreaOutputStream
Constructs a TextAreaOutputStream.- Parameters:
text
- the text area to which we want to write.
-
-
Method Details
-
clear
public void clear()Clear the text area. -
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
- See Also:
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
- See Also:
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
- See Also:
-