Class SnappyFrameDecompressor.Builder
java.lang.Object
io.netty.handler.codec.compression.Decompressor.AbstractDecompressorBuilder
io.netty.handler.codec.compression.SnappyFrameDecompressor.Builder
- Enclosing class:
SnappyFrameDecompressor
@UnstableApi
public static final class SnappyFrameDecompressor.Builder
extends Decompressor.AbstractDecompressorBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild(ByteBufAllocator allocator) validateChecksums(boolean validateChecksums) If true, the checksum field will be validated against the actual uncompressed data, and if the checksums do not match, a suitableDecompressionExceptionwill be thrown.
-
Method Details
-
validateChecksums
If true, the checksum field will be validated against the actual uncompressed data, and if the checksums do not match, a suitableDecompressionExceptionwill be thrown. Off by default.- Parameters:
validateChecksums- Whether to validate the checksums- Returns:
- This builder
-
build
- Specified by:
buildin classDecompressor.AbstractDecompressorBuilder- Throws:
DecompressionException
-