Interface ZstdDecompressorFactory


@NullMarked public interface ZstdDecompressorFactory
Factory of ZstdDecompressor.

Instances are thread safe and can be obtained using ServiceLoader.

  • Method Summary

    Modifier and Type
    Method
    Description
    get(int bufferSize)
    Creates a new ZstdDecompressor instance with the provided decompression buffer size.
  • Method Details

    • get

      ZstdDecompressor get(int bufferSize)
      Creates a new ZstdDecompressor instance with the provided decompression buffer size.
      Parameters:
      bufferSize - The size of the buffer used for decompression, must be larger than 8192 or be equal to -1. Typically, bigger buffers mean less decompression loops, it does not change inputs or outputs
      Returns:
      A new ZstdDecompressor instance
      Throws:
      IllegalArgumentException - If bufferSize is less than 8192 and not -1