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.OutputStream
Everything 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 void
clear()
Clear the text area.void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int i)
-
-
-
Method Detail
-
clear
public void clear()
Clear the text area.
-
write
public void write(int i) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
- See Also:
OutputStream.write(int)
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.OutputStream
- See Also:
OutputStream.write(byte[], int, int)
-
write
public void write(byte[] b) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
- See Also:
OutputStream.write(byte[])
-
-