cct.tools.ui
Class JTextAreaOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by cct.tools.ui.JTextAreaOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class JTextAreaOutputStream
extends java.io.OutputStream

Title:

Description:

Copyright: Copyright (c) 2007

Company: ANU


Field Summary
(package private)  javax.swing.JTextArea textArea
           
 
Constructor Summary
JTextAreaOutputStream(javax.swing.JTextArea jTextArea)
           
 
Method Summary
 void close()
          Has no effect
 void flush()
          Flushes this output stream and forces any buffered output bytes to be written out.
 void write(byte[] b)
          Writes b.length bytes from the specified byte array to this output stream.
 void write(byte[] b, int off, int len)
          Writes len bytes from the specified byte array starting at offset off to this output stream.
 void write(int b)
          Writes the specified byte to this output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

textArea

javax.swing.JTextArea textArea
Constructor Detail

JTextAreaOutputStream

public JTextAreaOutputStream(javax.swing.JTextArea jTextArea)
Method Detail

close

public void close()
Has no effect

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream

flush

public void flush()
Flushes this output stream and forces any buffered output bytes to be written out.

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream

write

public void write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream.

Overrides:
write in class java.io.OutputStream
Parameters:
b - byte[]

write

public void write(byte[] b,
                  int off,
                  int len)
Writes len bytes from the specified byte array starting at offset off to this output stream.

Overrides:
write in class java.io.OutputStream
Parameters:
b - byte[]
off - int
len - int

write

public void write(int b)
Writes the specified byte to this output stream

Specified by:
write in class java.io.OutputStream
Parameters:
b - int