public class LoggingInputStream extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected LineLoggingBuffer |
loggingBuffer |
in| Constructor and Description |
|---|
LoggingInputStream(InputStream is,
String prefix)
Creates an input stream filter built on top of the specified
underlying input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skipprotected final LineLoggingBuffer loggingBuffer
public LoggingInputStream(InputStream is, String prefix)
is - the underlying input stream to be assigned to
the field this.is for later use, or
null if this instance is to be
created without an underlying stream.prefix - a log message prefix, eg 'c: ' for server side protocol trace input.public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2006–2022 Icegreen Technologies. All rights reserved.