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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decompressorbuild(ByteBufAllocator allocator)SnappyFrameDecompressor.BuildervalidateChecksums(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 Detail
-
validateChecksums
public SnappyFrameDecompressor.Builder 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. Off by default.- Parameters:
validateChecksums- Whether to validate the checksums- Returns:
- This builder
-
build
public Decompressor build(ByteBufAllocator allocator) throws DecompressionException
- Specified by:
buildin classDecompressor.AbstractDecompressorBuilder- Throws:
DecompressionException
-
-