Class marimba.gui.TextOutputStream
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.TextOutputStream
java.lang.Object
|
+----java.io.OutputStream
|
+----marimba.gui.TextOutputStream
- public class TextOutputStream
- extends OutputStream
- implements TimerClient
A stream for printing to a TextWidget. For example:
TextWidget widget = ...;
PrintStream out = new FastOutputStream(new TextOutputStream(widget));
out.println("Hello World");
out.flush();
- Version:
- 1.4, 12/19/96
- Author:
- Arthur van Hoff
-
TextOutputStream(TextWidget)
- Create an output stream which writes to a TextWidget.
-
flush()
- Flush
-
tick(long, Object)
- Focus on the end of the text.
-
write(byte[], int, int)
- Write a buffer.
-
write(int)
- Write a byte.
TextOutputStream
public TextOutputStream(TextWidget text)
- Create an output stream which writes to a TextWidget.
write
public void write(int b)
- Write a byte.
- Overrides:
- write in class OutputStream
write
public void write(byte buf[],
int off,
int len)
- Write a buffer.
- Overrides:
- write in class OutputStream
flush
public synchronized void flush()
- Flush
- Overrides:
- flush in class OutputStream
tick
public synchronized long tick(long tm,
Object arg)
- Focus on the end of the text.
All Packages Class Hierarchy This Package Previous Next Index