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