CompressionEncoder

interface CompressionEncoder

Represents a Compression encoder

Functions

Link copied to clipboard
abstract fun compress(readChannel: ByteReadChannel, coroutineContext: CoroutineContext = Dispatchers.Unconfined): ByteReadChannel

Wraps readChannel into a compressing ByteReadChannel

abstract fun compress(writeChannel: ByteWriteChannel, coroutineContext: CoroutineContext = Dispatchers.Unconfined): ByteWriteChannel

Wraps writeChannel into a compressing ByteWriteChannel

Link copied to clipboard
open fun predictCompressedLength(originalLength: Long): Long?

May predict compressed length based on the originalLength or return null if it is impossible.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard