Package com.google.api.client.http
Class GZipEncoding
java.lang.Object
com.google.api.client.http.GZipEncoding
- All Implemented Interfaces:
HttpEncoding
GZip HTTP content encoding.
- Since:
- 1.14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(StreamingContent content, OutputStream out) Encodes the streaming content into the output stream.getName()
Returns the content encoding name (for example"gzip"
) ornull
for none.
-
Constructor Details
-
GZipEncoding
public GZipEncoding()
-
-
Method Details
-
getName
Description copied from interface:HttpEncoding
Returns the content encoding name (for example"gzip"
) ornull
for none.- Specified by:
getName
in interfaceHttpEncoding
-
encode
Description copied from interface:HttpEncoding
Encodes the streaming content into the 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.
- Specified by:
encode
in interfaceHttpEncoding
- Parameters:
content
- streaming contentout
- output stream- Throws:
IOException
-