Interface CompressionHandler

All Known Implementing Classes:
DeflateCompressionHandler, NOPCompressionHandler

public interface CompressionHandler
The interface for CompressionHandlers for all the different compression algorithms.

Provides methods for compressing and decompression byte arrays.

Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    compress(byte[] bytes)
    Applies the compression algorithm to compress the given array of bytes.
    byte[]
    decompress(byte[] bytes)
    Applies the compression algorithm to decompress the given array of bytes.
  • Method Details

    • compress

      byte[] compress(byte[] bytes)
      Applies the compression algorithm to compress the given array of bytes.
      Parameters:
      bytes - The array of bytes to compress.
      Returns:
      The compressed representation of the byte array.
    • decompress

      byte[] decompress(byte[] bytes)
      Applies the compression algorithm to decompress the given array of bytes.
      Parameters:
      bytes - The array of bytes to decompress.
      Returns:
      The decompressed representation of the byte array.