Class ConsoleStream
java.lang.Object
java.io.OutputStream
se.datadosen.io.ConsoleStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
OutputStream that writes to a JTextComponent. Wrap with a PrintWriter and use
together with a JTextArea component to build a logging component
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
ConsoleStream
-
-
Method Details
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
public void flush()- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
write
public void write(int b) - Specified by:
writein classOutputStream
-