sam.ui.awt
Class TextAreaWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--sam.ui.awt.TextAreaWriter

public class TextAreaWriter
extends java.io.Writer

Text area writer. This is a simple bounded-recall java.io.Writer implementation that prints text to a graphical java.awt.TextArea


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
protected TextAreaWriter()
          Builds a new TextArea Writer
protected TextAreaWriter(int length)
          Builds a new TextArea Writer
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] c, int start, int size)
           
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaWriter

protected TextAreaWriter()
Builds a new TextArea Writer

See Also:
Settings.Constants.UI.AWT#LOG_LENGTH

TextAreaWriter

protected TextAreaWriter(int length)
Builds a new TextArea Writer

Parameters:
length - the maximum length of log material to be recalled.
Method Detail

write

public void write(char[] c,
                  int start,
                  int size)
Specified by:
write in class java.io.Writer

flush

public void flush()
Specified by:
flush in class java.io.Writer

close

public void close()
Specified by:
close in class java.io.Writer