Package com.github.luben.zstd
Class ZstdDictDecompress
- java.lang.Object
-
- com.github.luben.zstd.ZstdDictDecompress
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ZstdDictDecompress extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ZstdDictDecompress(byte[] dict)Convenience constructor to create a new dictionary for use with fast decompressZstdDictDecompress(byte[] dict, int offset, int length)Create a new dictionary for use with fast decompressZstdDictDecompress(java.nio.ByteBuffer dict)Create a new dictionary for use with fast decompress.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidfinalize()
-
-
-
Constructor Detail
-
ZstdDictDecompress
public ZstdDictDecompress(byte[] dict)
Convenience constructor to create a new dictionary for use with fast decompress- Parameters:
dict- buffer containing dictionary to load/parse with exact length
-
ZstdDictDecompress
public ZstdDictDecompress(byte[] dict, int offset, int length)Create a new dictionary for use with fast decompress- Parameters:
dict- buffer containing dictionaryoffset- the offset into the buffer to read fromlength- number of bytes to use from the buffer
-
ZstdDictDecompress
public ZstdDictDecompress(java.nio.ByteBuffer dict)
Create a new dictionary for use with fast decompress. The provided bytebuffer is available for reuse when the method returns.- Parameters:
dict- Direct ByteBuffer containing dictionary using position and limit to define range in buffer.
-
-