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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeTo(java.io.OutputStream out)
Writes the byte content to the given output stream.
-
-
-
Method Detail
-
writeTo
void writeTo(java.io.OutputStream out) throws java.io.IOException
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:
java.io.IOException
-
-