public final class StandardCompressionOptions extends Object
GzipOptions and DeflateOptions| Modifier and Type | Method and Description |
|---|---|
static DeflateOptions |
deflate()
Default implementation of
DeflateOptions with
compressionLevel set to 6, windowBits set to 15 and memLevel set to 8. |
static DeflateOptions |
deflate(int compressionLevel,
int windowBits,
int memLevel)
Create a new
DeflateOptions Instance |
static GzipOptions |
gzip()
Default implementation of
GzipOptions with
compressionLevel() set to 6, windowBits() set to 15 and memLevel() set to 8. |
static GzipOptions |
gzip(int compressionLevel,
int windowBits,
int memLevel)
Create a new
GzipOptions Instance |
public static GzipOptions gzip()
GzipOptions with
compressionLevel() set to 6, windowBits() set to 15 and memLevel() set to 8.public static GzipOptions gzip(int compressionLevel, int windowBits, int memLevel)
GzipOptions InstancecompressionLevel - 1 yields the fastest compression and 9 yields the
best compression. 0 means no compression. The default
compression level is 6.windowBits - The base two logarithm of the size of the history buffer. The
value should be in the range 9 to 15 inclusive.
Larger values result in better compression at the expense of
memory usage. The default value is 15.memLevel - How much memory should be allocated for the internal compression
state. 1 uses minimum memory and 9 uses maximum
memory. Larger values result in better and faster compression
at the expense of memory usage. The default value is 8public static DeflateOptions deflate()
DeflateOptions with
compressionLevel set to 6, windowBits set to 15 and memLevel set to 8.public static DeflateOptions deflate(int compressionLevel, int windowBits, int memLevel)
DeflateOptions InstancecompressionLevel - 1 yields the fastest compression and 9 yields the
best compression. 0 means no compression. The default
compression level is 6.windowBits - The base two logarithm of the size of the history buffer. The
value should be in the range 9 to 15 inclusive.
Larger values result in better compression at the expense of
memory usage. The default value is 15.memLevel - How much memory should be allocated for the internal compression
state. 1 uses minimum memory and 9 uses maximum
memory. Larger values result in better and faster compression
at the expense of memory usage. The default value is 8Copyright © 2008–2025 The Netty Project. All rights reserved.