Class GZipEncoding (1.41.8)

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
NameDescription
contentStreamingContent
outOutputStream
Exceptions
TypeDescription
IOException

getName()

public String getName()

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

Returns
TypeDescription
String