Class ZlibCodecFactory
- java.lang.Object
- 
- io.netty.handler.codec.compression.ZlibCodecFactory
 
- 
 public final class ZlibCodecFactory extends java.lang.ObjectCreates a newZlibEncoderand a newZlibDecoder.
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanisSupportingWindowSizeAndMemLevel()Returnstrueif specify a custom window size and mem level is supported.static ZlibDecodernewZlibDecoder()Deprecated.UsenewZlibDecoder(int).static ZlibDecodernewZlibDecoder(byte[] dictionary)Deprecated.static ZlibDecodernewZlibDecoder(byte[] dictionary, int maxAllocation)Create a new decoder instance with the specified preset dictionary and maximum buffer allocation.static ZlibDecodernewZlibDecoder(int maxAllocation)Create a new decoder instance with specified maximum buffer allocation.static ZlibDecodernewZlibDecoder(ZlibWrapper wrapper)Deprecated.static ZlibDecodernewZlibDecoder(ZlibWrapper wrapper, int maxAllocation)Create a new decoder instance with the specified wrapper and maximum buffer allocation.static ZlibEncodernewZlibEncoder(byte[] dictionary)static ZlibEncodernewZlibEncoder(int compressionLevel)static ZlibEncodernewZlibEncoder(int compressionLevel, byte[] dictionary)static ZlibEncodernewZlibEncoder(int compressionLevel, int windowBits, int memLevel, byte[] dictionary)static ZlibEncodernewZlibEncoder(ZlibWrapper wrapper)static ZlibEncodernewZlibEncoder(ZlibWrapper wrapper, int compressionLevel)static ZlibEncodernewZlibEncoder(ZlibWrapper wrapper, int compressionLevel, int windowBits, int memLevel)
 
- 
- 
- 
Method Detail- 
isSupportingWindowSizeAndMemLevelpublic static boolean isSupportingWindowSizeAndMemLevel() Returnstrueif specify a custom window size and mem level is supported.
 - 
newZlibEncoderpublic static ZlibEncoder newZlibEncoder(int compressionLevel) 
 - 
newZlibEncoderpublic static ZlibEncoder newZlibEncoder(ZlibWrapper wrapper) 
 - 
newZlibEncoderpublic static ZlibEncoder newZlibEncoder(ZlibWrapper wrapper, int compressionLevel) 
 - 
newZlibEncoderpublic static ZlibEncoder newZlibEncoder(ZlibWrapper wrapper, int compressionLevel, int windowBits, int memLevel) 
 - 
newZlibEncoderpublic static ZlibEncoder newZlibEncoder(byte[] dictionary) 
 - 
newZlibEncoderpublic static ZlibEncoder newZlibEncoder(int compressionLevel, byte[] dictionary) 
 - 
newZlibEncoderpublic static ZlibEncoder newZlibEncoder(int compressionLevel, int windowBits, int memLevel, byte[] dictionary) 
 - 
newZlibDecoder@Deprecated public static ZlibDecoder newZlibDecoder() Deprecated.UsenewZlibDecoder(int).Create a new decoder instance.
 - 
newZlibDecoderpublic 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@Deprecated public static ZlibDecoder newZlibDecoder(ZlibWrapper wrapper) Deprecated.Create a new decoder instance with the specified wrapper.
 - 
newZlibDecoderpublic static ZlibDecoder newZlibDecoder(ZlibWrapper wrapper, int maxAllocation) 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@Deprecated public static ZlibDecoder newZlibDecoder(byte[] dictionary) Deprecated.Create a new decoder instance with the specified preset dictionary. The wrapper is alwaysZlibWrapper.ZLIBbecause it is the only format that supports the preset dictionary.
 - 
newZlibDecoderpublic static ZlibDecoder newZlibDecoder(byte[] dictionary, int maxAllocation) Create a new decoder instance with the specified preset dictionary and maximum buffer allocation. The wrapper is alwaysZlibWrapper.ZLIBbecause 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.
 
 
- 
 
-