Package io.netty.handler.codec.http2
Class DelegatingDecompressorFrameListener.Http2Decompressor
java.lang.Object
io.netty.handler.codec.http2.DelegatingDecompressorFrameListener.Http2Decompressor
- Enclosing class:
DelegatingDecompressorFrameListener
Provides the state for stream
DATA frame decompression.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intconsumeBytes(int streamId, int decompressedBytes) Determines the ratio betweennumBytesanddecompressed.(package private) EmbeddedChannelResponsible for taking compressed bytes in and producing decompressed bytes.(package private) voidincrementCompressedBytes(int delta) Increment the number of bytes received prior to doing any decompression.(package private) voidincrementDecompressedBytes(int delta) Increment the number of bytes after the decompression process.
-
Field Details
-
decompressor
-
compressed
private int compressed -
decompressed
private int decompressed
-
-
Constructor Details
-
Http2Decompressor
Http2Decompressor(EmbeddedChannel decompressor)
-
-
Method Details
-
decompressor
EmbeddedChannel decompressor()Responsible for taking compressed bytes in and producing decompressed bytes. -
incrementCompressedBytes
void incrementCompressedBytes(int delta) Increment the number of bytes received prior to doing any decompression. -
incrementDecompressedBytes
void incrementDecompressedBytes(int delta) Increment the number of bytes after the decompression process. -
consumeBytes
Determines the ratio betweennumBytesanddecompressed. This ratio is used to decrementdecompressedandcompressed.- Parameters:
streamId- the stream IDdecompressedBytes- The number of post-decompressed bytes to return to flow control- Returns:
- The number of pre-decompressed bytes that have been consumed.
- Throws:
Http2Exception
-