public class ZstdDictCompress
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
ZstdDictCompress(byte[] dict,
int level)
Convenience constructor to create a new dictionary for use with fast compress
|
ZstdDictCompress(byte[] dict,
int offset,
int length,
int level)
Create a new dictionary for use with fast compress
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
public ZstdDictCompress(byte[] dict, int level)
dict
- buffer containing dictionary to load/parse with exact lengthlevel
- compression levelpublic ZstdDictCompress(byte[] dict, int offset, int length, int level)
dict
- buffer containing dictionaryoffset
- the offset into the buffer to read fromlength
- number of bytes to use from the bufferlevel
- compression levelpublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable