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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the text area.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int i) |
close, flushprotected JTextArea text
protected int offset
public TextAreaOutputStream(JTextArea text) throws IOException
text - the text area to which we want to write.IOExceptionpublic void clear()
public void write(int i)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(int)public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(byte[], int, int)public void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(byte[])Copyright © 2015. All rights reserved.