Closeablepublic class LoggingInputStream extends FilterInputStream
LoggingByteArrayOutputStream.in| Constructor | Description |
|---|---|
LoggingInputStream(InputStream inputStream,
Logger logger,
Level loggingLevel,
int contentLoggingLimit) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
LoggingByteArrayOutputStream |
getLogStream() |
Returns the log stream.
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skippublic LoggingInputStream(InputStream inputStream, Logger logger, Level loggingLevel, int contentLoggingLimit)
inputStream - input stream to forward all reads tologger - loggerloggingLevel - logging levelcontentLoggingLimit - maximum number of bytes to log (may be 0 to avoid logging
content)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 class FilterInputStreamIOExceptionpublic final LoggingByteArrayOutputStream getLogStream()
Copyright © 2011–2019 Google. All rights reserved.