Class JdkZlibDecompressor.Builder
java.lang.Object
io.netty.handler.codec.compression.Decompressor.AbstractDecompressorBuilder
io.netty.handler.codec.compression.JdkZlibDecompressor.Builder
- Enclosing class:
JdkZlibDecompressor
@UnstableApi
public static final class JdkZlibDecompressor.Builder
extends Decompressor.AbstractDecompressorBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild(ByteBufAllocator allocator) decompressConcatenated(boolean decompressConcatenated) dictionary(byte[] dictionary) Set the preset dictionary to use.maxAllocation(int maxAllocation) Set the maximum output buffer size.wrapper(ZlibWrapper wrapper) Set the wrapper format for the deflated data.
-
Method Details
-
wrapper
Set the wrapper format for the deflated data. Defaults toZlibWrapper.ZLIB.- Parameters:
wrapper- The wrapper format- Returns:
- This builder
-
dictionary
Set the preset dictionary to use. Defaults to no dictionary.- Parameters:
dictionary- The dictionary- Returns:
- This builder
-
maxAllocation
Set the maximum output buffer size. Defaults to 1M.- Parameters:
maxAllocation- The maximum output buffer size.- Returns:
- This builder
-
decompressConcatenated
-
build
- Specified by:
buildin classDecompressor.AbstractDecompressorBuilder- Throws:
DecompressionException
-