public final class ZlibCodecFactory extends Object
ZlibEncoder
and a new ZlibDecoder
.Modifier and Type | Method and Description |
---|---|
static boolean |
isSupportingWindowSizeAndMemLevel()
Returns
true if specify a custom window size and mem level is supported. |
static ZlibDecoder |
newZlibDecoder()
Deprecated.
Use
newZlibDecoder(int) . |
static ZlibDecoder |
newZlibDecoder(byte[] dictionary)
Deprecated.
|
static ZlibDecoder |
newZlibDecoder(byte[] dictionary,
int maxAllocation)
Create a new decoder instance with the specified preset dictionary and maximum buffer allocation.
|
static ZlibDecoder |
newZlibDecoder(int maxAllocation)
Create a new decoder instance with specified maximum buffer allocation.
|
static ZlibDecoder |
newZlibDecoder(ZlibWrapper wrapper)
Deprecated.
|
static ZlibDecoder |
newZlibDecoder(ZlibWrapper wrapper,
int maxAllocation)
Create a new decoder instance with the specified wrapper and maximum buffer allocation.
|
static ZlibEncoder |
newZlibEncoder(byte[] dictionary) |
static ZlibEncoder |
newZlibEncoder(int compressionLevel) |
static ZlibEncoder |
newZlibEncoder(int compressionLevel,
byte[] dictionary) |
static ZlibEncoder |
newZlibEncoder(int compressionLevel,
int windowBits,
int memLevel,
byte[] dictionary) |
static ZlibEncoder |
newZlibEncoder(ZlibWrapper wrapper) |
static ZlibEncoder |
newZlibEncoder(ZlibWrapper wrapper,
int compressionLevel) |
static ZlibEncoder |
newZlibEncoder(ZlibWrapper wrapper,
int compressionLevel,
int windowBits,
int memLevel) |
public static boolean isSupportingWindowSizeAndMemLevel()
true
if specify a custom window size and mem level is supported.public static ZlibEncoder newZlibEncoder(int compressionLevel)
public static ZlibEncoder newZlibEncoder(ZlibWrapper wrapper)
public static ZlibEncoder newZlibEncoder(ZlibWrapper wrapper, int compressionLevel)
public static ZlibEncoder newZlibEncoder(ZlibWrapper wrapper, int compressionLevel, int windowBits, int memLevel)
public static ZlibEncoder newZlibEncoder(byte[] dictionary)
public static ZlibEncoder newZlibEncoder(int compressionLevel, byte[] dictionary)
public static ZlibEncoder newZlibEncoder(int compressionLevel, int windowBits, int memLevel, byte[] dictionary)
@Deprecated public static ZlibDecoder newZlibDecoder()
newZlibDecoder(int)
.public static ZlibDecoder newZlibDecoder(int maxAllocation)
maxAllocation
- Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is not limited by decoder.@Deprecated public static ZlibDecoder newZlibDecoder(ZlibWrapper wrapper)
newZlibDecoder(ZlibWrapper, int)
.public static ZlibDecoder newZlibDecoder(ZlibWrapper wrapper, int maxAllocation)
maxAllocation
- Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is not limited by decoder.@Deprecated public static ZlibDecoder newZlibDecoder(byte[] dictionary)
newZlibDecoder(byte[], int)
.ZlibWrapper.ZLIB
because it is the only format that
supports the preset dictionary.public static ZlibDecoder newZlibDecoder(byte[] dictionary, int maxAllocation)
ZlibWrapper.ZLIB
because it is the only format that
supports the preset dictionary.maxAllocation
- Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is not limited by decoder.Copyright © 2008–2025 The Netty Project. All rights reserved.