Package io.servicetalk.encoding.netty
Class ZipContentCodecBuilder
- java.lang.Object
-
- io.servicetalk.encoding.netty.ZipContentCodecBuilder
-
public abstract class ZipContentCodecBuilder extends java.lang.Object
Base class for Zip based content-codecs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ContentCodec
build()
Build and return an instance of theContentCodec
with the configuration of the builder.ZipContentCodecBuilder
maxChunkSize(int maxChunkSize)
Set the max allowed chunk size to inflate during decoding.ZipContentCodecBuilder
withCompressionLevel(int compressionLevel)
Sets the compression level for this codec's encoder.
-
-
-
Method Detail
-
withCompressionLevel
public final ZipContentCodecBuilder withCompressionLevel(int compressionLevel)
Sets the compression level for this codec's encoder.- Parameters:
compressionLevel
- 1 yields the fastest compression and 9 yields the best compression, 0 means no compression.- Returns:
this
-
maxChunkSize
public final ZipContentCodecBuilder maxChunkSize(int maxChunkSize)
Set the max allowed chunk size to inflate during decoding.- Parameters:
maxChunkSize
- the max allowed chunk size to inflate during decoding.- Returns:
this
-
build
public abstract ContentCodec build()
Build and return an instance of theContentCodec
with the configuration of the builder.- Returns:
- the
ContentCodec
with the configuration of the builder
-
-