Interface ZstdDecompressorFactoryProvider
@NullMarked
public interface ZstdDecompressorFactoryProvider
Provider of
ZstdDecompressorFactory.
Instances are thread safe and can be obtained using ServiceLoader.
-
Method Summary
Modifier and TypeMethodDescriptionget(int bufferSizeHint) Creates a newZstdDecompressorFactorywith the provided decompression buffer size.
-
Method Details
-
get
Creates a newZstdDecompressorFactorywith the provided decompression buffer size.- Parameters:
bufferSizeHint- A hint for the size of the buffer used for decompression, must be larger than 1024 or be equal to -2. Typically, bigger buffers mean less decompression loops, it does not change inputs or outputs- Returns:
- A new
ZstdDecompressorFactoryinstance - Throws:
IllegalArgumentException- IfbufferSizeis less than 1024 and not -2
-