Package com.google.api.client.util
Interface StreamingContent
- All Known Subinterfaces:
HttpContent
- All Known Implementing Classes:
AbstractHttpContent
,AbstractInputStreamContent
,AbstractXmlHttpContent
,AtomContent
,ByteArrayContent
,ByteArrayStreamingContent
,EmptyContent
,FileContent
,HttpEncodingStreamingContent
,InputStreamContent
,JsonHttpContent
,LoggingStreamingContent
,MockHttpContent
,MultipartContent
,ProtoHttpContent
,UrlEncodedContent
,XmlHttpContent
public interface StreamingContent
Streaming content interface to write bytes to an output stream.
Implementations don't need to be thread-safe.
- Since:
- 1.14
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(OutputStream out) Writes the byte content to the given output stream.
-
Method Details
-
writeTo
Writes 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 the output stream has not been closed, and will fail to work if it has been closed.
- Parameters:
out
- output stream- Throws:
IOException
-