public class ZstdDictCompress
extends java.lang.Object
| 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() |
void |
setFinalize(boolean finalize)
Enable or disable class finalizers
If finalizers are disabled the responsibility fir calling the `close` method is on the consumer.
|
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 setFinalize(boolean finalize)
finalize - default `true` - finalizers are enabledpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Object