public class GZIPContentDecoder extends GZIPContentDecoder implements ContentDecoder
ContentDecoder
for the "gzip" encoding.Modifier and Type | Class and Description |
---|---|
static class |
GZIPContentDecoder.Factory
Specialized
ContentDecoder.Factory for the "gzip" encoding. |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
Constructor and Description |
---|
GZIPContentDecoder() |
GZIPContentDecoder(ByteBufferPool byteBufferPool,
int bufferSize) |
GZIPContentDecoder(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
decodedChunk(java.nio.ByteBuffer chunk)
Called when a chunk of data is inflated.
|
acquire, decode, decodeChunks, destroy, isFinished, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, release
public static final int DEFAULT_BUFFER_SIZE
public GZIPContentDecoder()
public GZIPContentDecoder(int bufferSize)
public GZIPContentDecoder(ByteBufferPool byteBufferPool, int bufferSize)
protected boolean decodedChunk(java.nio.ByteBuffer chunk)
GZIPContentDecoder
Called when a chunk of data is inflated.
The default implementation aggregates all the chunks
into a single buffer returned from GZIPContentDecoder.decode(ByteBuffer)
.
Derived implementations may choose to consume inflated chunks
individually and return true
from this method to prevent
further inflation until a subsequent call to GZIPContentDecoder.decode(ByteBuffer)
or GZIPContentDecoder.decodeChunks(ByteBuffer)
is made.
decodedChunk
in class GZIPContentDecoder
chunk
- the inflated chunk of dataGZIPContentDecoder.decodeChunks(ByteBuffer)
or GZIPContentDecoder.decode(ByteBuffer)
should return, allowing to consume the inflated chunk and apply
backpressure