Scoop API

scoop:scoop.compression:0.1.0

CompressionSink

class CompressionSink

source · line 11
public
public class CompressionSink private constructor(private val stream: SyncCompressionSink) : ByteSink, Closeable

A synchronous compression sink adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. Call finish for successful completion; close alone does not finish the format.

function flush

source · line 45
public
public override fun flush(): Unit

Drains a synchronization point and downstream output without ending input.

function close

source · line 55
public
public override fun close(): Unit

Releases codec state and closes an endpoint whose ownership was transferred. It does not force incomplete data to finish.

function finish

source · line 50
public
public fun finish(): Unit

Completes the stream and drains final output; decoding also validates that input ended at a complete format boundary.