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

Constructor Index

 o TextOutputStream(TextWidget)
Create an output stream which writes to a TextWidget.

Method Index

 o flush()
Flush
 o tick(long, Object)
Focus on the end of the text.
 o write(byte[], int, int)
Write a buffer.
 o write(int)
Write a byte.

Constructors

 o TextOutputStream
  public TextOutputStream(TextWidget text)
Create an output stream which writes to a TextWidget.

Methods

 o write
  public void write(int b)
Write a byte.
Overrides:
write in class OutputStream
 o write
  public void write(byte buf[],
                    int off,
                    int len)
Write a buffer.
Overrides:
write in class OutputStream
 o flush
  public synchronized void flush()
Flush
Overrides:
flush in class OutputStream
 o 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