Class ZstdCompressor


  • public class ZstdCompressor
    extends Object
    Frame based Zstd compressor (https://github.com/facebook/zstd) Implemented based on https://github.com/airlift/aircompressor - a pure Java implementation (no JNI).
    Author:
    bjorncs
    • Constructor Detail

      • ZstdCompressor

        public ZstdCompressor()
    • Method Detail

      • compress

        public byte[] compress​(byte[] input,
                               int inputOffset,
                               int inputLength)
      • compress

        public int compress​(byte[] input,
                            int inputOffset,
                            int inputLength,
                            byte[] output,
                            int outputOffset,
                            int maxOutputLength)
      • decompress

        public int decompress​(byte[] input,
                              int inputOffset,
                              int inputLength,
                              byte[] output,
                              int outputOffset,
                              int maxOutputLength)
      • getMaxCompressedLength

        public static int getMaxCompressedLength​(int uncompressedLength)
      • getDecompressedLength

        public static int getDecompressedLength​(byte[] input,
                                                int inputOffset,
                                                int inputLength)