Package com.github.luben.zstd
Class ZstdDictCompress
- java.lang.Object
-
- com.github.luben.zstd.ZstdDictCompress
-
- All Implemented Interfaces:
java.io.Closeable
public class ZstdDictCompress extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ZstdDictCompress(byte[] dict, int level)
Convenience constructor to create a new dictionary for use with fast compressZstdDictCompress(byte[] dict, int offset, int length, int level)
Create a new dictionary for use with fast compress
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
finalize()
-
-
-
Constructor Detail
-
ZstdDictCompress
public ZstdDictCompress(byte[] dict, int level)
Convenience constructor to create a new dictionary for use with fast compress- Parameters:
dict
- buffer containing dictionary to load/parse with exact lengthlevel
- compression level
-
ZstdDictCompress
public ZstdDictCompress(byte[] dict, int offset, int length, int level)
Create a new dictionary for use with fast compress- Parameters:
dict
- buffer containing dictionaryoffset
- the offset into the buffer to read fromlength
- number of bytes to use from the bufferlevel
- compression level
-
-