GeezerVison is showing netty.io — ZstdEncoder (Netty API Reference (4.1.141.Final))
Class ZstdEncoder
-
-
Constructor Summary
Constructors
Constructor
Description
Creates a new Zstd encoder.
Creates a new Zstd encoder.
Creates a new Zstd encoder.
ZstdEncoder(int compressionLevel,
int blockSize,
int maxEncodeSize)
-
Method Summary
Modifier and Type
Method
Description
protected void
void
void
Do nothing by default, sub-classes may override this method.
void
Do nothing by default, sub-classes may override this method.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ZstdEncoder
public ZstdEncoder()
Creates a new Zstd encoder.
Please note that if you use the default constructor, the default BLOCK_SIZE and MAX_BLOCK_SIZE
will be used. If you want to specify BLOCK_SIZE and MAX_BLOCK_SIZE yourself,
please use ZstdEncoder(int,int) constructor
-
ZstdEncoder
public ZstdEncoder(int compressionLevel)
Creates a new Zstd encoder.
- Parameters:
compressionLevel - specifies the level of the compression
-
ZstdEncoder
public ZstdEncoder(int blockSize,
int maxEncodeSize)
Creates a new Zstd encoder.
- Parameters:
blockSize - is used to calculate the compressionLevel
maxEncodeSize - specifies the size of the largest compressed object
-
ZstdEncoder
public ZstdEncoder(int compressionLevel,
int blockSize,
int maxEncodeSize)
- Parameters:
compressionLevel - specifies the level of the compression
blockSize - is used to calculate the compressionLevel
maxEncodeSize - specifies the size of the largest compressed object
-
|