Class ZlibCodecFactory


  • public final class ZlibCodecFactory
    extends Object
    Creates a new ZLIB encoder / decoder.
    • Method Detail

      • isSupportingWindowSizeAndMemLevel

        public static boolean isSupportingWindowSizeAndMemLevel()
        Returns true 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,
                                                    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​(byte[] dictionary)