Scoop API

scoop:scoop.compression:0.1.0

DecompressionSink

class DecompressionSink

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

A synchronous decompression 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 close

source · line 107
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 flush

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

Drains a synchronization point and downstream output without ending input.

function finish

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

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