Class DeflateCompressionHandler

    • Constructor Detail

      • DeflateCompressionHandler

        public DeflateCompressionHandler()
    • Method Detail

      • compress

        public byte[] compress​(byte[] bytes)
        Applies the compression algorithm to compress the given array of bytes.
        Specified by:
        compress in interface CompressionHandler
        Parameters:
        bytes - The array of bytes to compress.
        Returns:
        The compressed representation of the byte array.
      • decompress

        public byte[] decompress​(byte[] bytes)
        Applies the compression algorithm to decompress the given array of bytes.
        Specified by:
        decompress in interface CompressionHandler
        Parameters:
        bytes - The array of bytes to decompress.
        Returns:
        The decompressed representation of the byte array.