create
Apple streaming compressor factory using z_stream for true incremental compression.
Apple streaming decompressor factory using z_stream for true incremental decompression.
Creates a streaming compressor.
Parameters
The compression algorithm to use.
The compression level.
Strategy for allocating output buffers.
Size of output buffers (default 32KB).
The zlib window size (log2 of the LZ77 window size). When 0 (the default), uses the algorithm's default: 15 for Deflate/Zlib, -15 for Raw, 31 for Gzip. When non-zero, the value is passed directly to deflateInit2(). Valid range depends on the algorithm. Note: JVM's java.util.zip.Deflater does not support custom window sizes; this parameter is ignored on JVM.
Creates a streaming decompressor.
Parameters
The compression algorithm to use.
Strategy for allocating output buffers.
Size of output buffers (default 32KB).
Optional hint for expected decompressed size. Used to pre-allocate buffers.
Creates a suspending streaming compressor. Required for browser JavaScript which only supports async CompressionStream.
Creates a suspending streaming decompressor.
JS streaming compressor factory. Node.js: uses native zlib sync APIs. Browser: throws UnsupportedOperationException (use SuspendingStreamingCompressor instead).
JS streaming decompressor factory. Node.js: uses native zlib sync APIs. Browser: throws UnsupportedOperationException (use SuspendingStreamingDecompressor instead).
JS suspending streaming compressor factory. Node.js: uses Transform stream API for stateful compression with flush support. Browser: uses native CompressionStream API (no flush support).
JS suspending streaming decompressor factory. Node.js: uses Transform stream API for stateful decompression. Browser: uses native DecompressionStream API.