public final class LoggingStreamingContent extends Objectimplements StreamingContent
LoggingOutputStream.
Implementation is not thread-safe.
| Constructor and Description |
|---|
LoggingStreamingContent(StreamingContent
|
public LoggingStreamingContent(StreamingContentcontent, Logger logger, Level loggingLevel, int contentLoggingLimit)
content - streaming content
logger - logger
loggingLevel - logging level
contentLoggingLimit - maximum number of bytes to log or
0 to avoid logging content
public void writeTo(OutputStreamout) throws IOException
StreamingContent
Implementations 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
StreamingContent
out - output stream
IOException