Class LzfDecompressor.Builder
java.lang.Object
io.netty.handler.codec.compression.Decompressor.AbstractDecompressorBuilder
io.netty.handler.codec.compression.LzfDecompressor.Builder
- Enclosing class:
LzfDecompressor
@UnstableApi
public static final class LzfDecompressor.Builder
extends Decompressor.AbstractDecompressorBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild(ByteBufAllocator allocator) safeInstance(boolean safeInstance) Iftruedecoder will useChunkDecoderthat only uses standard JDK access methods, and should work on all Java platforms and JVMs.
-
Method Details
-
safeInstance
Iftruedecoder will useChunkDecoderthat only uses standard JDK access methods, and should work on all Java platforms and JVMs. Otherwise decoder will try to use highly optimizedChunkDecoderimplementation that uses Sun JDK'sUnsafeclass (which may be included by other JDK's as well).- Parameters:
safeInstance- Whether to use the safe instance only- Returns:
- This builder
-
build
- Specified by:
buildin classDecompressor.AbstractDecompressorBuilder- Throws:
DecompressionException
-