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
public class LogOutputStream
- extends FilterOutputStream
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)
LogOutputStream
public LogOutputStream(OutputStream newout,
OutputStream newlog)
- SplitStream - Konstruktorkommentar.
- Parameters:
newout
- newlog
-
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterOutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class FilterOutputStream
- Throws:
IOException
getLog
public OutputStream getLog()
setLog
public void setLog(OutputStream newLog)
write
public void write(int b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.