public abstract class ZipCompressionBuilder
extends Object
| Modifier and Type | Method and Description |
|---|---|
abstract SerializerDeserializer<Buffer> |
build()
Build and return an instance of the
SerializerDeserializer with the configuration of the builder. |
abstract StreamingSerializerDeserializer<Buffer> |
buildStreaming()
Build and return an instance of the
StreamingSerializerDeserializer with the configuration of the
builder. |
ZipCompressionBuilder |
maxChunkSize(int maxChunkSize)
Set the max allowed chunk size to inflate during decoding.
|
ZipCompressionBuilder |
withCompressionLevel(int compressionLevel)
Sets the compression level for this codec's encoder.
|
public final ZipCompressionBuilder withCompressionLevel(int compressionLevel)
compressionLevel - 1 yields the fastest compression and 9 yields the best compression,
0 means no compression.thispublic final ZipCompressionBuilder maxChunkSize(int maxChunkSize)
maxChunkSize - the max allowed chunk size to inflate during decoding.thispublic abstract SerializerDeserializer<Buffer> build()
SerializerDeserializer with the configuration of the builder.SerializerDeserializer with the configuration of the builderpublic abstract StreamingSerializerDeserializer<Buffer> buildStreaming()
StreamingSerializerDeserializer with the configuration of the
builder.StreamingSerializerDeserializer with the configuration of the builder