Top Description Fields Constructors Methods
io.netty5.handler.codec.compression

public Class ZstdOptions

extends Object
implements CompressionOptions
Class Inheritance
All Implemented Interfaces
io.netty5.handler.codec.compression.CompressionOptions
Imports
io.netty5.util.internal.ObjectUtil

ZstdOptions holds compressionLevel for Zstd compression.

Field Summary

Modifier and TypeField and Description
private final int
private final int
pack-priv static final ZstdOptions
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
ZstdOptions(int
specifies the level of the compression
compressionLevel
,
int
is used to calculate the compressionLevel
blockSize
,
int
specifies the size of the largest compressed object
maxEncodeSize
)

Create a new ZstdOptions

Method Summary

Modifier and TypeMethod and Description
public int
public int
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockSizeback to summary
private final int blockSize
compressionLevelback to summary
private final int compressionLevel
DEFAULTback to summary
pack-priv static final ZstdOptions DEFAULT

Default implementation of ZstdOptions with{compressionLevel(int)} set to ZstdConstants#DEFAULT_COMPRESSION_LEVEL,ZstdConstants#DEFAULT_BLOCK_SIZE, ZstdConstants#MAX_BLOCK_SIZE

maxEncodeSizeback to summary
private final int maxEncodeSize

Constructor Detail

ZstdOptionsback to summary
pack-priv ZstdOptions(int compressionLevel, int blockSize, int maxEncodeSize)

Create a new ZstdOptions

Parameters
compressionLevel:int

specifies the level of the compression

blockSize:int

is used to calculate the compressionLevel

maxEncodeSize:int

specifies the size of the largest compressed object

Method Detail

blockSizeback to summary
public int blockSize()
compressionLevelback to summary
public int compressionLevel()
maxEncodeSizeback to summary
public int maxEncodeSize()