GeezerVison is showing netty.io — ZlibCodecFactory (Netty API Reference (4.1.141.Final))
Class ZlibCodecFactory
public final class ZlibCodecFactory
extends Object
-
Method Summary
Modifier and Type
Method
Description
static boolean
Returns true if specify a custom window size and mem level is supported.
Create a new decoder instance with the specified preset dictionary and maximum buffer allocation.
Create a new decoder instance with specified maximum buffer allocation.
Create a new decoder instance with the specified wrapper and maximum buffer allocation.
newZlibEncoder(int compressionLevel,
int windowBits,
int memLevel,
byte[] dictionary)
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
isSupportingWindowSizeAndMemLevel
public static boolean isSupportingWindowSizeAndMemLevel()
Returns true if specify a custom window size and mem level is supported.
-
newZlibEncoder
public static ZlibEncoder newZlibEncoder(int compressionLevel)
-
-
-
newZlibEncoder
public static ZlibEncoder newZlibEncoder(ZlibWrapper wrapper,
int compressionLevel,
int windowBits,
int memLevel)
-
newZlibEncoder
public static ZlibEncoder newZlibEncoder(byte[] dictionary)
-
newZlibEncoder
public static ZlibEncoder newZlibEncoder(int compressionLevel,
byte[] dictionary)
-
newZlibEncoder
public static ZlibEncoder newZlibEncoder(int compressionLevel,
int windowBits,
int memLevel,
byte[] dictionary)
-
newZlibDecoder
Create a new decoder instance.
-
newZlibDecoder
public static ZlibDecoder newZlibDecoder(int maxAllocation)
Create a new decoder instance with specified maximum buffer allocation.
- Parameters:
maxAllocation - Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is not limited by decoder.
-
newZlibDecoder
Create a new decoder instance with the specified wrapper.
-
newZlibDecoder
Create a new decoder instance with the specified wrapper and maximum buffer allocation.
- Parameters:
maxAllocation - Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is not limited by decoder.
-
newZlibDecoder
Create a new decoder instance with the specified preset dictionary. The wrapper
is always ZlibWrapper.ZLIB because it is the only format that
supports the preset dictionary.
-
newZlibDecoder
public static ZlibDecoder newZlibDecoder(byte[] dictionary,
int maxAllocation)
Create a new decoder instance with the specified preset dictionary and maximum buffer allocation.
The wrapper is always ZlibWrapper.ZLIB because it is the only format that
supports the preset dictionary.
- Parameters:
maxAllocation - Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is not limited by decoder.
|