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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanprivate byte[]private intprivate ZlibWrapper -
Constructor Summary
Constructors -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
wrapper
-
dictionary
private byte[] dictionary -
maxAllocation
private int maxAllocation -
decompressConcatenated
boolean decompressConcatenated
-
-
Constructor Details
-
Builder
Builder()
-
-
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
-