Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.tools.beans
Class TextAreaOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byoracle.toplink.tools.beans.TextAreaOutputStream


public class TextAreaOutputStream
extends java.io.OutputStream

This class can be used to wrapper a window as a stream.


Constructor Summary
TextAreaOutputStream(javax.swing.JTextArea text)
TextAreaOutputStream(javax.swing.JTextArea text, boolean shouldAutoScroll)

Method Summary
javax.swing.JTextArea getText()
void scrollToEnd()
Append the char to the text area.
void setShouldAutoScroll(boolean shouldAutoScroll)
JDK 1.2.2 has a auto scroll problem when threads are used.
void setText(javax.swing.JTextArea text)
boolean shouldAutoScroll()
JDK 1.2.2 has a auto scroll problem when threads are used.
void write(byte[] bytes)
Append the char to the text area.
void write(byte[] bytes, int offset, int length)
Append the char to the text area.
void write(int b)
Append the char to the text area.

Methods inherited from class java.io.OutputStream
close, flush

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

TextAreaOutputStream

public TextAreaOutputStream(javax.swing.JTextArea text)

TextAreaOutputStream

public TextAreaOutputStream(javax.swing.JTextArea text,
                            boolean shouldAutoScroll)

Method Detail

getText

public javax.swing.JTextArea getText()

scrollToEnd

public void scrollToEnd()
Append the char to the text area.

setShouldAutoScroll

public void setShouldAutoScroll(boolean shouldAutoScroll)
JDK 1.2.2 has a auto scroll problem when threads are used. This can be used to fix it.

setText

public void setText(javax.swing.JTextArea text)

shouldAutoScroll

public boolean shouldAutoScroll()
JDK 1.2.2 has a auto scroll problem when threads are used. This can be used to fix it.

write

public void write(byte[] bytes)
Append the char to the text area.

write

public void write(byte[] bytes,
                  int offset,
                  int length)
Append the char to the text area.

write

public void write(int b)
Append the char to the text area.

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.