Package se.datadosen.io
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 compontent to build a logging component
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
ConsoleStream
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-
write
public void write(int b) - Specified by:
write
in classOutputStream
-