InflaterSource

class InflaterSource : Source

A source that uses DEFLATE to decompress data read from another source.

Constructors

InflaterSource
Link copied to clipboard
fun InflaterSource(source: Source, inflater: Inflater)

Functions

close
Link copied to clipboard
open override fun close()
Closes this source and releases the resources held by this source.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
read
Link copied to clipboard
open override fun read(sink: Buffer, byteCount: Long): Long
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
readOrInflate
Link copied to clipboard
fun readOrInflate(sink: Buffer, byteCount: Long): Long
Consume deflated bytes from the underlying source, and write any inflated bytes to sink.
refill
Link copied to clipboard
fun refill(): Boolean
Refills the inflater with compressed data if it needs input.
timeout
Link copied to clipboard
open override fun timeout(): Timeout
Returns the timeout for this source.
toString
Link copied to clipboard
open fun toString(): String