public final class InflatingZstdDataConsumer extends Object implements AsyncDataConsumer
AsyncDataConsumer that inflates Zstandard (zstd) content codings.
This consumer accepts compressed bytes and forwards decompressed data to a downstream
AsyncDataConsumer. It is intended to be installed by the
client execution chain when a response carries Content-Encoding: zstd. Applications
normally do not instantiate it directly—enable content compression (default) and let
ContentCompressionAsyncExec wire it automatically.
Behavior
Content-Encoding and related headers.IOException with a descriptive message.releaseResources() must be called to free native resources.| Constructor and Description |
|---|
InflatingZstdDataConsumer(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 InflatingZstdDataConsumer(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.