cryptix.util.gui
Class TextAreaWriter

java.lang.Object
  extended by java.io.Writer
      extended by cryptix.util.gui.TextAreaWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class TextAreaWriter
extends java.io.Writer

A class that extends Writer to write into a TextArea. Note that the output will not be displayed (i.e. the TextArea repainted) until flush() or close() is called.

Copyright © 1998 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1 $

Since:
Cryptix 3.0.4
Author:
David Hopwood

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TextAreaWriter(java.awt.TextArea ta)
          Creates a TextAreaWriter for the given TextArea.
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] ca, int offset, int length)
           
 void write(java.lang.String s)
           
 void write(java.lang.String s, int offset, int length)
           
 
Methods inherited from class java.io.Writer
append, append, append, append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAreaWriter

public TextAreaWriter(java.awt.TextArea ta)
Creates a TextAreaWriter for the given TextArea.

Method Detail

write

public void write(char[] ca,
                  int offset,
                  int length)
Specified by:
write in class java.io.Writer

write

public void write(java.lang.String s)
Overrides:
write in class java.io.Writer

write

public void write(java.lang.String s,
                  int offset,
                  int length)
Overrides:
write in class java.io.Writer

flush

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

close

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