Class StandardCompressionOptions
- java.lang.Object
-
- io.netty.handler.codec.compression.StandardCompressionOptions
-
public final class StandardCompressionOptions extends java.lang.Object
Standard Compression Options forGzipOptions
andDeflateOptions
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StandardCompressionOptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeflateOptions
deflate()
Default implementation ofDeflateOptions
withcompressionLevel
set to 6,windowBits
set to 15 andmemLevel
set to 8.static DeflateOptions
deflate(int compressionLevel, int windowBits, int memLevel)
Create a newDeflateOptions
Instancestatic GzipOptions
gzip()
Default implementation ofGzipOptions
withcompressionLevel()
set to 6,windowBits()
set to 15 andmemLevel()
set to 8.static GzipOptions
gzip(int compressionLevel, int windowBits, int memLevel)
Create a newGzipOptions
Instance
-
-
-
Method Detail
-
gzip
public static GzipOptions gzip()
Default implementation ofGzipOptions
withcompressionLevel()
set to 6,windowBits()
set to 15 andmemLevel()
set to 8.
-
gzip
public static GzipOptions gzip(int compressionLevel, int windowBits, int memLevel)
Create a newGzipOptions
Instance- Parameters:
compressionLevel
-1
yields the fastest compression and9
yields the best compression.0
means 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 range9
to15
inclusive. 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.1
uses minimum memory and9
uses maximum memory. Larger values result in better and faster compression at the expense of memory usage. The default value is8
-
deflate
public static DeflateOptions deflate()
Default implementation ofDeflateOptions
withcompressionLevel
set to 6,windowBits
set to 15 andmemLevel
set to 8.
-
deflate
public static DeflateOptions deflate(int compressionLevel, int windowBits, int memLevel)
Create a newDeflateOptions
Instance- Parameters:
compressionLevel
-1
yields the fastest compression and9
yields the best compression.0
means 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 range9
to15
inclusive. 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.1
uses minimum memory and9
uses maximum memory. Larger values result in better and faster compression at the expense of memory usage. The default value is8
-
-