Class HttpEncodingStreamingContent
java.lang.Object
com.google.api.client.http.HttpEncodingStreamingContent
- All Implemented Interfaces:
StreamingContent
Streaming content based on an HTTP encoding.
Implementation is thread-safe only if the streaming content and HTTP encoding are thread-safe.
- Since:
- 1.14
- Author:
- Yaniv Inbar
-
Constructor Summary
ConstructorsConstructorDescriptionHttpEncodingStreamingContent(StreamingContent content, HttpEncoding encoding) -
Method Summary
Modifier and TypeMethodDescriptionReturns the streaming content.Returns the HTTP encoding.voidwriteTo(OutputStream out) Writes the byte content to the given output stream.
-
Constructor Details
-
HttpEncodingStreamingContent
- Parameters:
content- streaming contentencoding- HTTP encoding
-
-
Method Details
-
writeTo
Description copied from interface:StreamingContentWrites the byte content to the given output stream.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.
- Specified by:
writeToin interfaceStreamingContent- Parameters:
out- output stream- Throws:
IOException
-
getContent
Returns the streaming content. -
getEncoding
Returns the HTTP encoding.
-