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 theBzip2Encoderand theBzip2Decoder.Uncompresses aByteBufencoded 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 aByteBufusing 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.AnEncoderExceptionthat is raised when compression failed.CompressionOptionsprovides 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).ADecoderExceptionthat is raised when decompression failed.DeflateOptionsholdsDeflateOptions.compressionLevel(),DeflateOptions.memLevel()andDeflateOptions.windowBits()for Deflate compression.Core of FastLZ compression algorithm.Uncompresses aByteBufencoded byFastLzFrameEncoderusing the FastLZ algorithm.Current state of decompression.Compresses aByteBufusing the FastLZ algorithm.GzipOptionsholdsDeflateOptions.compressionLevel(),DeflateOptions.memLevel()andDeflateOptions.windowBits()for Gzip compression.Decompress aByteBufusing the inflate algorithm.Compresses aByteBufusing the deflate algorithm.Compresses aByteBufusing the deflate algorithm.Deprecated.Uncompresses aByteBufencoded with the Snappy framing format.Deprecated.UseSnappyFrameEncoderinstead.Compresses aByteBufusing the Snappy framing format.SnappyOptionsholds config for Snappy compression.Standard Compression Options forGzipOptionsandDeflateOptionsCreates a newZlibEncoderand a newZlibDecoder.Decompresses aByteBufusing the deflate algorithm.Compresses aByteBufusing the deflate algorithm.Utility methods used byJZlibEncoderandJZlibDecoder.The container file formats that wrap the stream compressed by the DEFLATE algorithm.
SnappyFrameDecoderinstead.