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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decompressorbuild(ByteBufAllocator allocator)JdkZlibDecompressor.BuilderdecompressConcatenated(boolean decompressConcatenated)JdkZlibDecompressor.Builderdictionary(byte[] dictionary)Set the preset dictionary to use.JdkZlibDecompressor.BuildermaxAllocation(int maxAllocation)Set the maximum output buffer size.JdkZlibDecompressor.Builderwrapper(ZlibWrapper wrapper)Set the wrapper format for the deflated data.
-
-
-
Method Detail
-
wrapper
public JdkZlibDecompressor.Builder wrapper(ZlibWrapper wrapper)
Set the wrapper format for the deflated data. Defaults toZlibWrapper.ZLIB.- Parameters:
wrapper- The wrapper format- Returns:
- This builder
-
dictionary
public JdkZlibDecompressor.Builder dictionary(byte[] dictionary)
Set the preset dictionary to use. Defaults to no dictionary.- Parameters:
dictionary- The dictionary- Returns:
- This builder
-
maxAllocation
public JdkZlibDecompressor.Builder maxAllocation(int maxAllocation)
Set the maximum output buffer size. Defaults to 1M.- Parameters:
maxAllocation- The maximum output buffer size.- Returns:
- This builder
-
decompressConcatenated
public JdkZlibDecompressor.Builder decompressConcatenated(boolean decompressConcatenated)
-
build
public Decompressor build(ByteBufAllocator allocator) throws DecompressionException
- Specified by:
buildin classDecompressor.AbstractDecompressorBuilder- Throws:
DecompressionException
-
-