content
Streaming content.
StreamingContent
LoggingOutputStream
.
Implementation is not thread-safe.
private final StreamingContent
private final int
0
to avoid logging content.private final Logger
private final Level
LoggingStreamingContent(StreamingContent content,
Logger logger,
Level loggingLevel,
int contentLoggingLimit)
void
writeTo(OutputStream out)
0
to avoid logging content.content
- streaming contentlogger
- loggerloggingLevel
- logging levelcontentLoggingLimit
- maximum number of bytes to log or 0
to avoid logging contentStreamingContent
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 streamIOException