|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
rvl.util.TextAreaOutputStream
public class TextAreaOutputStream
This class is used to set up a TextArea to receive output.
e.g., to redirect System.out, you'd do:
TextAreaOutputStream taos = new TextAreaOutputStream (txtArea);
PrintStream ps = new PrintStream (taos, true);
System.setIn (ps);
| Field Summary |
|---|
| Fields inherited from class java.io.ByteArrayOutputStream |
|---|
buf, count |
| Constructor Summary | |
|---|---|
TextAreaOutputStream(java.awt.TextArea ta)
Construct a TextAreaOutputStream with the given TextArea |
|
| Method Summary | |
|---|---|
void |
flush()
|
| Methods inherited from class java.io.ByteArrayOutputStream |
|---|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextAreaOutputStream(java.awt.TextArea ta)
| Method Detail |
|---|
public void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||