Package io.netty.handler.codec.compression
package io.netty.handler.codec.compression
-
ClassDescriptionon OpenJDK Adler32 and CRC32 both calls ZipUtils.loadLibrary on class init.An bit reader that allows the reading of single bit booleans, bit strings of arbitrary length (up to 32 bits), and bit aligned 32-bit integers.A bit writer that allows the writing of single bit booleans, unary numbers, bit strings of arbitrary length (up to 32 bits), and bit aligned 32-bit integers.Compresses and writes a single Bzip2 block.
Block encoding consists of the following stages:
1.Reads and decompresses a single Bzip2 block.
Block decoding consists of the following stages:
1.Constants for both theBzip2Encoder
and theBzip2Decoder
.Uncompresses aByteBuf
encoded with the Bzip2 format.Current state of stream.DivSufSort suffix array generator.
Based on libdivsufsort 1.2.3 patched to support Bzip2.
This is a simple conversion of the original C with two minor bugfixes applied (see "BUGFIX" comments within the class).Compresses aByteBuf
using the Bzip2 algorithm.Current state of stream.An in-place, length restricted Canonical Huffman code length allocator.
Based on the algorithm proposed by R.A decoder for the Bzip2 Huffman coding stage.An encoder for the Bzip2 Huffman encoding stage.A 256 entry Move To Front transform.An encoder for the Bzip2 Move To Front Transform and Run-Length Encoding[2] stages.
Although conceptually these two stages are separate, it is computationally efficient to perform them in one pass.Random numbers for decompress Bzip2 blocks.AnEncoderException
that is raised when compression failed.CompressionOptions
provides compression options for various types of compressor types, like Brotli.A CRC32 calculator.Implements CRC32-C as defined in: "Optimization of Cyclic Redundancy-CHeck Codes with 24 and 32 Parity Bits", IEEE Transactions on Communications 41(6): 883-892 (1993).ADecoderException
that is raised when decompression failed.DeflateOptions
holdsDeflateOptions.compressionLevel()
,DeflateOptions.memLevel()
andDeflateOptions.windowBits()
for Deflate compression.Core of FastLZ compression algorithm.Uncompresses aByteBuf
encoded byFastLzFrameEncoder
using the FastLZ algorithm.Current state of decompression.Compresses aByteBuf
using the FastLZ algorithm.GzipOptions
holdsDeflateOptions.compressionLevel()
,DeflateOptions.memLevel()
andDeflateOptions.windowBits()
for Gzip compression.Decompress aByteBuf
using the inflate algorithm.Compresses aByteBuf
using the deflate algorithm.Compresses aByteBuf
using the deflate algorithm.Deprecated.Uncompresses aByteBuf
encoded with the Snappy framing format.Deprecated.UseSnappyFrameEncoder
instead.Compresses aByteBuf
using the Snappy framing format.SnappyOptions
holds config for Snappy compression.Standard Compression Options forGzipOptions
andDeflateOptions
Creates a newZlibEncoder
and a newZlibDecoder
.Decompresses aByteBuf
using the deflate algorithm.Compresses aByteBuf
using the deflate algorithm.Utility methods used byJZlibEncoder
andJZlibDecoder
.The container file formats that wrap the stream compressed by the DEFLATE algorithm.
SnappyFrameDecoder
instead.