public class LoggingOutputStream extends FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected LineLoggingBuffer |
loggingBuffer |
out| Constructor and Description |
|---|
LoggingOutputStream(OutputStream out,
String prefix)
Creates an output stream filter built on top of the specified
underlying output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(int b) |
write, writeprotected final LineLoggingBuffer loggingBuffer
public LoggingOutputStream(OutputStream out, String prefix)
out - the underlying output stream to be assigned to
the field this.out for later use, or
null if this instance is to be
created without an underlying stream.prefix - a log message prefix, eg 's: ' for server side protocol trace output.public void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class FilterOutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOExceptionCopyright © 2006–2022 Icegreen Technologies. All rights reserved.