Deflater Sink
A sink that uses DEFLATE to compress data written to another source.
Sync flush
Aggressive flushing of this stream may result in reduced compression. Each call to flush immediately compresses all currently-buffered data; this early compression may be less effective than compression performed without flushing.
This is equivalent to using Deflater with the sync flush option. This class does not offer any partial flush mechanism. For best performance, only call flush when application behavior requires it.
Functions
Returns a new sink that buffers writes to sink
. The returned sink will batch writes to sink
. Use this wherever you write to a sink to get an ergonomic and efficient access to data.
Returns a sink that uses cipher to encrypt or decrypt this.
Returns an DeflaterSink that DEFLATE-compresses data to this Sink while writing.