public class GZipEncoding extends Object implements HttpEncoding
| Constructor and Description |
|---|
GZipEncoding() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(StreamingContent content,
OutputStream out)
Encodes the streaming content into the output stream.
|
String |
getName()
Returns the content encoding name (for example
"gzip") or null for none. |
public String getName()
HttpEncoding"gzip") or null for none.getName in interface HttpEncodingpublic void encode(StreamingContent content, OutputStream out) throws IOException
HttpEncodingImplementations 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.
encode in interface HttpEncodingcontent - streaming contentout - output streamIOExceptionCopyright © 2011–2025 Google. All rights reserved.