com.lowagie.rups.io
public class TextAreaOutputStream extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
protected int |
offset
Keeps track of the offset of the text in the text area.
|
protected javax.swing.JTextArea |
text
The text area to which we want to write.
|
Constructor and Description |
---|
TextAreaOutputStream(javax.swing.JTextArea text)
Constructs a TextAreaOutputStream.
|
protected javax.swing.JTextArea text
protected int offset
public TextAreaOutputStream(javax.swing.JTextArea text) throws java.io.IOException
text
- the text area to which we want to write.java.io.IOException
public void clear()
public void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(int)
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(byte[], int, int)
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
OutputStream.write(byte[])