public final class TextOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
TextOutputStream(org.eclipse.swt.widgets.Text output)
Create an output stream from a Text widget.
|
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b)
Write a byte array to the output stream.
|
void |
write(byte[] b,
int offset,
int length)
Write a section of an byte array to the output stream.
|
void |
write(int b)
Write a byte to the output stream.
|
public TextOutputStream(org.eclipse.swt.widgets.Text output)
output
- the widget that displays the output written to the stream.public void write(byte[] b, int offset, int length)
write
in class java.io.OutputStream
b
- the byte array.offset
- the array index where the section starts.length
- the length of the section.public void write(byte[] b)
write
in class java.io.OutputStream
b
- the byte array writtenpublic void write(int b)
write
in class java.io.OutputStream
b
- the byte written