public class GZipEncoding extends java.lang.Object implements HttpEncoding
Constructor and Description |
---|
GZipEncoding() |
Modifier and Type | Method and 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" ) or null for none. |
public java.lang.String getName()
HttpEncoding
"gzip"
) or null
for none.getName
in interface HttpEncoding
public void encode(StreamingContent content, java.io.OutputStream out) throws java.io.IOException
HttpEncoding
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.
encode
in interface HttpEncoding
content
- streaming contentout
- output streamjava.io.IOException
Copyright © 2011-2018 Google. All Rights Reserved.