public final class LoggingStreamingContent extends Object implements StreamingContent
LoggingOutputStream.
Implementation is not thread-safe.
| Constructor and Description |
|---|
LoggingStreamingContent(StreamingContent content,
Logger logger,
Level loggingLevel,
int contentLoggingLimit) |
public LoggingStreamingContent(StreamingContent content, Logger logger, Level loggingLevel, int contentLoggingLimit)
content - streaming contentlogger - loggerloggingLevel - logging levelcontentLoggingLimit - maximum number of bytes to log or 0 to avoid logging contentpublic void writeTo(OutputStream out) throws IOException
StreamingContentImplementations must not close the output stream, and instead should flush the output stream. Some callers may assume that the the output stream has not been closed, and will fail to work if it has been closed.
writeTo in interface StreamingContentout - output streamIOExceptionCopyright © 2011-2015 Google. All Rights Reserved.