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 TypeMethodDescriptionvoidencode(StreamingContent content, OutputStream out) Encodes the streaming content into the output stream.getName()Returns the content encoding name (for example"gzip") ornullfor none.
-
Constructor Details
-
GZipEncoding
public GZipEncoding()
-
-
Method Details
-
getName
Description copied from interface:HttpEncodingReturns the content encoding name (for example"gzip") ornullfor none.- Specified by:
getNamein interfaceHttpEncoding
-
encode
Description copied from interface:HttpEncodingEncodes 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 output stream has not been closed, and will fail to work if it has been closed.
- Specified by:
encodein interfaceHttpEncoding- Parameters:
content- streaming contentout- output stream- Throws:
IOException
-