|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
se.datadosen.io.ConsoleStream
public class ConsoleStream
OutputStream that writes to a JTextComponent. Wrap with a PrintWriter and use together with a JTextArea compontent to build a logging component
| Constructor Summary | |
|---|---|
ConsoleStream(javax.swing.text.JTextComponent console)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleStream(javax.swing.text.JTextComponent console)
| Method Detail |
|---|
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void close()
close in interface java.io.Closeableclose in class java.io.OutputStreampublic void write(int b)
write in class java.io.OutputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||