- java.lang.Object
-
- io.netty5.handler.codec.compression.ZlibCodecFactory
-
public final class ZlibCodecFactory extends Object
Creates a new ZLIB encoder / decoder.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSupportingWindowSizeAndMemLevel()
Returnstrue
if specify a custom window size and mem level is supported.static ChannelHandler
newZlibDecoder()
static ChannelHandler
newZlibDecoder(byte[] dictionary)
static ChannelHandler
newZlibDecoder(ZlibWrapper wrapper)
static ChannelHandler
newZlibEncoder(byte[] dictionary)
static ChannelHandler
newZlibEncoder(int compressionLevel)
static ChannelHandler
newZlibEncoder(int compressionLevel, byte[] dictionary)
static ChannelHandler
newZlibEncoder(int compressionLevel, int windowBits, int memLevel, byte[] dictionary)
static ChannelHandler
newZlibEncoder(ZlibWrapper wrapper)
static ChannelHandler
newZlibEncoder(ZlibWrapper wrapper, int compressionLevel)
static ChannelHandler
newZlibEncoder(ZlibWrapper wrapper, int compressionLevel, int windowBits, int memLevel)
-
-
-
Method Detail
-
isSupportingWindowSizeAndMemLevel
public static boolean isSupportingWindowSizeAndMemLevel()
Returnstrue
if specify a custom window size and mem level is supported.
-
newZlibEncoder
public static ChannelHandler newZlibEncoder(int compressionLevel)
-
newZlibEncoder
public static ChannelHandler newZlibEncoder(ZlibWrapper wrapper)
-
newZlibEncoder
public static ChannelHandler newZlibEncoder(ZlibWrapper wrapper, int compressionLevel)
-
newZlibEncoder
public static ChannelHandler newZlibEncoder(ZlibWrapper wrapper, int compressionLevel, int windowBits, int memLevel)
-
newZlibEncoder
public static ChannelHandler newZlibEncoder(byte[] dictionary)
-
newZlibEncoder
public static ChannelHandler newZlibEncoder(int compressionLevel, byte[] dictionary)
-
newZlibEncoder
public static ChannelHandler newZlibEncoder(int compressionLevel, int windowBits, int memLevel, byte[] dictionary)
-
newZlibDecoder
public static ChannelHandler newZlibDecoder()
-
newZlibDecoder
public static ChannelHandler newZlibDecoder(ZlibWrapper wrapper)
-
newZlibDecoder
public static ChannelHandler newZlibDecoder(byte[] dictionary)
-
-