com.lowagie.rups.io

Class TextAreaOutputStream

public class TextAreaOutputStream extends OutputStream

Everything writing to this OutputStream will be shown in a JTextArea.
Field Summary
protected intoffset
Keeps track of the offset of the text in the text area.
protected JTextAreatext
The text area to which we want to write.
Constructor Summary
TextAreaOutputStream(JTextArea text)
Constructs a TextAreaOutputStream.
Method Summary
voidclear()
Clear the text area.
voidwrite(int i)
voidwrite(byte[] b, int off, int len)
voidwrite(byte[] b)

Field Detail

offset

protected int offset
Keeps track of the offset of the text in the text area.

text

protected JTextArea text
The text area to which we want to write.

Constructor Detail

TextAreaOutputStream

public TextAreaOutputStream(JTextArea text)
Constructs a TextAreaOutputStream.

Parameters: text the text area to which we want to write.

Throws: IOException

Method Detail

clear

public void clear()
Clear the text area.

write

void write(int i)

See Also: java.io.OutputStream#write(int)

write

void write(byte[] b, int off, int len)

See Also: java.io.OutputStream#write(byte[], int, int)

write

void write(byte[] b)

See Also: java.io.OutputStream#write(byte[])