public class GZipEncoding extends Objectimplements HttpEncoding
| Constructor and Description |
|---|
GZipEncoding()
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(StreamingContent
Encodes the streaming content into the output stream.
|
String |
getName()
Returns the content encoding name (for example
"gzip") or
null for none.
|
public StringgetName()
HttpEncoding
"gzip") or
null for none.
public void encode(StreamingContentcontent, 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 the output stream has not been closed, and will fail to work if it has been closed.
encode in interface
HttpEncoding
content - streaming content
out - output stream
IOException