Class ZstandardDecoderConfig
java.lang.Object
org.eclipse.jetty.compression.zstandard.ZstandardDecoderConfig
- All Implemented Interfaces:
DecoderConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidsetBufferSize(int size) Set Decoder input buffer size.voidsetMagicless(boolean flag) Enable or disable magicless zstd frames.
-
Constructor Details
-
ZstandardDecoderConfig
public ZstandardDecoderConfig()
-
-
Method Details
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSizein interfaceDecoderConfig
-
setBufferSize
public void setBufferSize(int size) Set Decoder input buffer size.Make sure that the
Compression.getByteBufferPool()instance can pool the specified value otherwise direct buffers have to be allocated then left to be collected by the GC, which may have serious performance implications.- Specified by:
setBufferSizein interfaceDecoderConfig- Parameters:
size- size of input buffer.
-
isMagicless
public boolean isMagicless() -
setMagicless
public void setMagicless(boolean flag) Enable or disable magicless zstd frames.Note: only applies when using
Compression.newDecoderSource(Content.Source)orZstandardCompression.newDecoderSource(Content.Source, DecoderConfig).> Note: not applied when using
Compression.newDecoderInputStream(InputStream)orZstandardCompression.newDecoderInputStream(InputStream, DecoderConfig).- Parameters:
flag- true to enable, false is default.- See Also:
-
ZstdDecompressCtx.setMagicless(boolean)
-