Interface Compressor

All Known Implementing Classes:
Lz4Compressor, LzoCompressor, SnappyCompressor, ZstdCompressor

public interface Compressor
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength)
     
    void
    compress(ByteBuffer input, ByteBuffer output)
     
    int
    maxCompressedLength(int uncompressedSize)
     
  • Method Details

    • maxCompressedLength

      int maxCompressedLength(int uncompressedSize)
    • compress

      int compress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength)
      Returns:
      number of bytes written to the output
    • compress

      void compress(ByteBuffer input, ByteBuffer output)