private class GzipHttpInputInterceptor.Decoder extends GZIPContentDecoder
| Modifier | Constructor and Description |
|---|---|
private |
Decoder(ByteBufferPool pool,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeChunks(java.nio.ByteBuffer compressed)
Inflate compressed data.
|
protected boolean |
decodedChunk(java.nio.ByteBuffer chunk)
Called when a chunk of data is inflated.
|
acquire, decode, destroy, isFinished, releaseprivate Decoder(ByteBufferPool pool, int bufferSize)
protected boolean decodedChunk(java.nio.ByteBuffer chunk)
GZIPContentDecoderThe default implementation aggregates all the chunks
into a single buffer returned from GZIPContentDecoder.decode(ByteBuffer).
Derived implementations may choose to consume chunks individually
and return false to prevent further inflation until a subsequent
call to GZIPContentDecoder.decode(ByteBuffer) or GZIPContentDecoder.decodeChunks(ByteBuffer).
decodedChunk in class GZIPContentDecoderchunk - The inflated chunk of dataGZIPContentDecoder.decodeChunks(ByteBuffer) or GZIPContentDecoder.decode(ByteBuffer)
should return, allowing back pressure of compressed data.public void decodeChunks(java.nio.ByteBuffer compressed)
GZIPContentDecoderInflation continues until the compressed block end is reached, there is no
more compressed data or a call to GZIPContentDecoder.decodedChunk(ByteBuffer) returns true.
decodeChunks in class GZIPContentDecodercompressed - Buffer of compressed data to inflate