Interface ZstdDecompressorFactory
@NullMarked
public interface ZstdDecompressorFactory
Factory of
ZstdDecompressor.
Instances are thread safe and can be obtained using ServiceLoader.
-
Method Summary
Modifier and TypeMethodDescriptionget(int bufferSize) Creates a newZstdDecompressorinstance with the provided decompression buffer size.
-
Method Details
-
get
Creates a newZstdDecompressorinstance 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
ZstdDecompressorinstance - Throws:
IllegalArgumentException- IfbufferSizeis less than 8192 and not -1
-