org.devaki.nextobjects.ui.components
Class JTextAreaOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.devaki.nextobjects.ui.components.JTextAreaOutputStream

public class JTextAreaOutputStream
extends java.io.OutputStream

This class provide the textarea used for the log panel.


Constructor Summary
JTextAreaOutputStream(javax.swing.JTextArea pTa)
          Initialise an OutputStream as entry for a given jTextarea
 
Method Summary
 void close()
          Close operation (nothing to do)
 void flush()
          Flush operation (nothing to do)
 void write(byte[] b)
          data to be logged entry point
 void write(byte[] b, int off, int len)
          data to be logged entry point
 void write(int b)
          data to be logged entry point
 void write(java.lang.String msg)
          Write as string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextAreaOutputStream

public JTextAreaOutputStream(javax.swing.JTextArea pTa)
Initialise an OutputStream as entry for a given jTextarea

Parameters:
pTa - the textarea
Method Detail

write

public final void write(int b)
data to be logged entry point

Parameters:
b - ascii char

write

public final void write(byte[] b)
data to be logged entry point

Parameters:
b - message as byte array

write

public final void write(byte[] b,
                        int off,
                        int len)
data to be logged entry point

Parameters:
b - message as a byte array
off - where to start
len - lengt to log

write

public final void write(java.lang.String msg)
Write as string

Parameters:
msg - the string

close

public void close()
Close operation (nothing to do)


flush

public void flush()
Flush operation (nothing to do)



Copyright © 2002-2004 devaki.org. All Rights Reserved.