Package com.lowagie.rups.io
Class TextAreaOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.lowagie.rups.io.TextAreaOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class TextAreaOutputStream extends java.io.OutputStreamEverything writing to this OutputStream will be shown in a JTextArea.
-
-
Constructor Summary
Constructors Constructor Description TextAreaOutputStream(javax.swing.JTextArea text)Constructs a TextAreaOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the text area.voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int i)
-
-
-
Method Detail
-
clear
public void clear()
Clear the text area.
-
write
public void write(int i) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
OutputStream.write(int)
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
OutputStream.write(byte[], int, int)
-
write
public void write(byte[] b) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException- See Also:
OutputStream.write(byte[])
-
-