public class LogOutputStream
extends java.io.FilterOutputStream
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 and Description |
---|
LogOutputStream(java.io.OutputStream newout,
java.io.OutputStream newlog)
SplitStream - Konstruktorkommentar.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
java.io.OutputStream |
getLog() |
void |
setLog(java.io.OutputStream newLog) |
void |
write(int b) |
public LogOutputStream(java.io.OutputStream newout, java.io.OutputStream newlog)
newout
- newlog
- public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterOutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterOutputStream
java.io.IOException
public java.io.OutputStream getLog()
public void setLog(java.io.OutputStream newLog)
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException