Package io.servicetalk.encoding.netty
Class ZipCompressionBuilder
java.lang.Object
io.servicetalk.encoding.netty.ZipCompressionBuilder
Base class for Zip based content-codecs.
-
Method Summary
Modifier and TypeMethodDescriptionabstract SerializerDeserializer<Buffer>
build()
Build and return an instance of theSerializerDeserializer
with the configuration of the builder.abstract StreamingSerializerDeserializer<Buffer>
Build and return an instance of theStreamingSerializerDeserializer
with the configuration of the builder.final ZipCompressionBuilder
maxChunkSize
(int maxChunkSize) Set the max allowed chunk size to inflate during decoding.final ZipCompressionBuilder
withCompressionLevel
(int compressionLevel) Sets the compression level for this codec's encoder.
-
Method Details
-
withCompressionLevel
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
Set the max allowed chunk size to inflate during decoding.- Parameters:
maxChunkSize
- the max allowed chunk size to inflate during decoding.- Returns:
this
-
build
Build and return an instance of theSerializerDeserializer
with the configuration of the builder.- Returns:
- the
SerializerDeserializer
with the configuration of the builder
-
buildStreaming
Build and return an instance of theStreamingSerializerDeserializer
with the configuration of the builder.- Returns:
- the
StreamingSerializerDeserializer
with the configuration of the builder
-