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
@Deprecated public interface StreamingContent
Deprecated.use com.google.common.io.ByteSinkStreaming 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 Deprecated Methods Modifier and Type Method Description void
writeTo(java.io.OutputStream out)
Deprecated.Writes the byte content to the given output stream.
-
-
-
Method Detail
-
writeTo
void writeTo(java.io.OutputStream out) throws java.io.IOException
Deprecated.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 output stream has not been closed, and will fail to work if it has been closed.
- Parameters:
out
- output stream- Throws:
java.io.IOException
-
-