Package de.intarsys.tools.stream
Class LogOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
de.intarsys.tools.stream.LogOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An output stream that logs any char written.
The output stream is piped in the writing process, any characters written are copied to an associated output stream object.
Client -> LogOutputStream -> OutputStream -> Destination | v OutputStream (Copy)
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorsConstructorDescriptionLogOutputStream
(OutputStream newout, OutputStream newlog) SplitStream - Konstruktorkommentar. -
Method Summary
Methods inherited from class java.io.FilterOutputStream
write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
LogOutputStream
SplitStream - Konstruktorkommentar.- Parameters:
newout
-newlog
-
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classFilterOutputStream
- Throws:
IOException
-
getLog
-
setLog
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-