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, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
LogOutputStream
SplitStream - Konstruktorkommentar.- Parameters:
newout-newlog-
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterOutputStream- Throws:
IOException
-
getLog
-
setLog
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-