Class GZipEncoding (1.45.1)

public class GZipEncoding implements HttpEncoding

GZip HTTP content encoding.

Inheritance

java.lang.Object > GZipEncoding

Implements

HttpEncoding

Constructors

GZipEncoding()

public GZipEncoding()

Methods

encode(StreamingContent content, OutputStream out)

public void encode(StreamingContent content, OutputStream out)

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 output stream has not been closed, and will fail to work if it has been closed.

Parameters
Name Description
content StreamingContent
out OutputStream
Exceptions
Type Description
IOException

getName()

public String getName()

Returns the content encoding name (for example "gzip") or null for none.

Returns
Type Description
String