Package de.intarsys.tools.stream
Class LogOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- de.intarsys.tools.stream.LogOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class LogOutputStream extends java.io.FilterOutputStreamAn 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)
-
-
Constructor Summary
Constructors Constructor Description LogOutputStream(java.io.OutputStream newout, java.io.OutputStream newlog)SplitStream - Konstruktorkommentar.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()java.io.OutputStreamgetLog()voidsetLog(java.io.OutputStream newLog)voidwrite(int b)
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
getLog
public java.io.OutputStream getLog()
-
setLog
public void setLog(java.io.OutputStream newLog)
-
write
public void write(int b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-