Interface Compressor


public interface Compressor
An interface to compress and decompress binaries.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    compress(byte[] rawData)
    Compress the byte array.
    byte[]
    decompress(byte[] compressedData)
    Decompress the compressed byte array.
  • Method Details

    • compress

      byte[] compress(byte[] rawData) throws IOException
      Compress the byte array.
      Parameters:
      rawData - the raw bytes
      Returns:
      compressed bytes
      Throws:
      IOException - during compressing
    • decompress

      byte[] decompress(byte[] compressedData) throws IOException
      Decompress the compressed byte array.
      Parameters:
      compressedData - the compressed bytes
      Returns:
      decomparessed bytes
      Throws:
      IOException - during decompressing