Class StandardCompressionOptions
java.lang.Object
io.netty.handler.codec.compression.StandardCompressionOptions
Standard Compression Options for
GzipOptions and DeflateOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeflateOptionsdeflate()Default implementation ofDeflateOptionswithcompressionLevelset to 6,windowBitsset to 15 andmemLevelset to 8.static DeflateOptionsdeflate(int compressionLevel, int windowBits, int memLevel) Create a newDeflateOptionsInstancestatic GzipOptionsgzip()Default implementation ofGzipOptionswithcompressionLevel()set to 6,windowBits()set to 15 andmemLevel()set to 8.static GzipOptionsgzip(int compressionLevel, int windowBits, int memLevel) Create a newGzipOptionsInstancestatic SnappyOptionssnappy()Create a newSnappyOptions
-
Constructor Details
-
StandardCompressionOptions
private StandardCompressionOptions()
-
-
Method Details
-
snappy
Create a newSnappyOptions -
gzip
Default implementation ofGzipOptionswithcompressionLevel()set to 6,windowBits()set to 15 andmemLevel()set to 8. -
gzip
Create a newGzipOptionsInstance- Parameters:
compressionLevel-1yields the fastest compression and9yields the best compression.0means no compression. The default compression level is6.windowBits- The base two logarithm of the size of the history buffer. The value should be in the range9to15inclusive. Larger values result in better compression at the expense of memory usage. The default value is15.memLevel- How much memory should be allocated for the internal compression state.1uses minimum memory and9uses maximum memory. Larger values result in better and faster compression at the expense of memory usage. The default value is8
-
deflate
Default implementation ofDeflateOptionswithcompressionLevelset to 6,windowBitsset to 15 andmemLevelset to 8. -
deflate
Create a newDeflateOptionsInstance- Parameters:
compressionLevel-1yields the fastest compression and9yields the best compression.0means no compression. The default compression level is6.windowBits- The base two logarithm of the size of the history buffer. The value should be in the range9to15inclusive. Larger values result in better compression at the expense of memory usage. The default value is15.memLevel- How much memory should be allocated for the internal compression state.1uses minimum memory and9uses maximum memory. Larger values result in better and faster compression at the expense of memory usage. The default value is8
-