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