public class LogOutputStream extends 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(OutputStream newout,
OutputStream newlog)
SplitStream - Konstruktorkommentar.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
OutputStream |
getLog() |
void |
setLog(OutputStream newLog) |
void |
write(int b) |
write, writepublic LogOutputStream(OutputStream newout, OutputStream newlog)
newout - newlog - public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionpublic OutputStream getLog()
public void setLog(OutputStream newLog)
public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.