Class ZlibDecoder

    • Constructor Detail

      • ZlibDecoder

        public ZlibDecoder​(ZlibWrapper wrapper)
        Creates a new instance with the specified wrapper.
        Throws:
        CompressionException - if failed to initialize zlib
      • ZlibDecoder

        public ZlibDecoder​(byte[] dictionary)
        Creates a new instance with the specified preset dictionary. The wrapper is always ZlibWrapper.ZLIB because it is the only format that supports the preset dictionary.
        Throws:
        CompressionException - if failed to initialize zlib
    • Method Detail

      • isClosed

        public boolean isClosed()
        Returns true if and only if the end of the compressed stream has been reached.