class DecompressionSource
source · line 54public
public class DecompressionSource private constructor(private val stream: SyncCompressionSource) : ByteSource, Closeable
- Supertype
ByteSource - Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
A synchronous decompression source adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. Reading to EOF completes format validation; early close does not.
constructor constructor
source · line 55public
constructor(source: ByteSource, options: DecompressionOptions = DecompressionOptions(), bufferSize: Long = 8192L)
parameter bufferSize
source · line 56public
bufferSize: Long = 8192L
parameter source
source · line 55public
source: ByteSource
parameter options
source · line 55public
options: DecompressionOptions = DecompressionOptions()
function readInto
source · line 84public
public override fun readInto(buffer: NativeByteBuffer, count: Long): Long
- Overrides
readInto
Produces up to count transformed bytes into the writable buffer region. EOF completes the format; short reads are permitted.
parameter count
source · line 84public
count: Long
parameter buffer
source · line 84public
buffer: NativeByteBuffer
property totals
source · line 75public
public val totals: CompressionTotals
get: public read-only
The actual input accepted and output delivered so far.
getter get
source · line 75public
get(): CompressionTotals
property failure
source · line 79public
public val failure: Throwable?
get: public read-only
The retained terminal failure, or None before failure.
getter get
source · line 79public
get(): Option<Throwable>
function close
source · line 89public
public override fun close(): Unit
- Overrides
close
Releases codec state and closes an endpoint whose ownership was transferred. It does not force incomplete data to finish.