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 HttpEncoding
public void encode(StreamingContent content, OutputStream out) throws IOException
HttpEncoding
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.
encode
in interface HttpEncoding
content
- streaming contentout
- output streamIOException
Copyright © 2011–2021 Google. All rights reserved.