Interface CompressionUtils


public interface CompressionUtils
This interface gives you access to data compression features.
  • Method Details

    • compress

      ByteArray compress(ByteArray data, CompressionType type)
      Compress data using the specified compression type.
      Parameters:
      data - data to be compressed
      type - CompressionType to use. Only GZIP is supported
      Returns:
      compressed data
    • decompress

      ByteArray decompress(ByteArray compressedData, CompressionType type)
      Decompress data compressed using the specified compression type.
      Parameters:
      compressedData - data to be decompressed
      type - CompressionType of the compressed data
      Returns:
      decompressed data