public final class InflatingGzipDataConsumer extends Object implements AsyncDataConsumer
AsyncDataConsumer that inflates Content-Encoding:
gzip. It parses the GZIP header on the fly, passes the deflated body
through a Inflater and verifies CRC + length trailer.
The implementation is fully non-blocking and honours back-pressure.
| Constructor and Description |
|---|
InflatingGzipDataConsumer(AsyncDataConsumer downstream) |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(ByteBuffer src) |
void |
releaseResources() |
void |
streamEnd(List<? extends Header> trailers) |
void |
updateCapacity(CapacityChannel c) |
public InflatingGzipDataConsumer(AsyncDataConsumer downstream)
public void updateCapacity(CapacityChannel c) throws IOException
updateCapacity in interface AsyncDataConsumerIOExceptionpublic void consume(ByteBuffer src) throws IOException
consume in interface AsyncDataConsumerIOExceptionpublic void streamEnd(List<? extends Header> trailers) throws HttpException, IOException
streamEnd in interface AsyncDataConsumerHttpExceptionIOExceptionpublic void releaseResources()
releaseResources in interface ResourceHolderCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.