content
Streaming content.
StreamingContent
Implementation is thread-safe only if the streaming content and HTTP encoding are thread-safe.
private final StreamingContent
private final HttpEncoding
HttpEncodingStreamingContent(StreamingContent content,
HttpEncoding encoding)
void
writeTo(OutputStream out)
content
- streaming contentencoding
- HTTP encodingStreamingContent
Implementations must not close the output stream, and instead should flush the output stream. Some callers may assume that the output stream has not been closed, and will fail to work if it has been closed.
writeTo
in interface StreamingContent
out
- output streamIOException