monix.reactive.compression

Type members

Classlikes

class CompressionException extends RuntimeException

Signals that exception occurred in compression/decompression

Signals that exception occurred in compression/decompression

Companion
object
Companion
class
sealed abstract class CompressionLevel(val value: Int)
Companion
object
Companion
class
final case class CompressionParameters(level: CompressionLevel, strategy: CompressionStrategy, flushMode: FlushMode)
Companion
object
sealed abstract class CompressionStrategy(val jValue: Int)
Companion
object
Companion
class
sealed abstract class FlushMode(val jValue: Int)
Companion
object
object FlushMode
Companion
class

Value members

Concrete methods

def deflate(bufferSize: Int, compressionParameters: CompressionParameters, noWrap: Boolean): Observable[Array[Byte]] => Observable[Array[Byte]]

Compresses stream with 'deflate' method described in https://tools.ietf.org/html/rfc1951.

Compresses stream with 'deflate' method described in https://tools.ietf.org/html/rfc1951.

Value Params
bufferSize

Size of internal buffer used for pulling data from deflater, affects performance.

compressionParameters

See CompressionParameters

noWrap

Whether output stream is wrapped in ZLIB header and trailer. For HTTP 'deflate' content-encoding should be false, see https://tools.ietf.org/html/rfc2616.

def gunzip(bufferSize: Int): Observable[Array[Byte]] => Observable[Array[Byte]]

Decompresses gzipped stream. Compression method is described in https://tools.ietf.org/html/rfc1952.

Decompresses gzipped stream. Compression method is described in https://tools.ietf.org/html/rfc1952.

Value Params
bufferSize

Size of buffer used internally, affects performance.

def gzip(bufferSize: Int, compressionParameters: CompressionParameters, fileName: Option[String], comment: Option[String], modificationTime: Option[Instant]): Observable[Array[Byte]] => Observable[Array[Byte]]

Returns a stream that incrementally compresses input into the GZIP format

Returns a stream that incrementally compresses input into the GZIP format

Value Params
bufferSize

Size of buffer used internally, affects performance.

comment

optional file modification time

compressionParameters

see CompressionParameters

fileName

optional file name

modificationTime

optional file comment

def inflate(bufferSize: Int, noWrap: Boolean): Observable[Array[Byte]] => Observable[Array[Byte]]

Decompresses deflated stream. Compression method is described in https://tools.ietf.org/html/rfc1951.

Decompresses deflated stream. Compression method is described in https://tools.ietf.org/html/rfc1951.

Value Params
bufferSize

Size of buffer used internally, affects performance.

noWrap

Whether is wrapped in ZLIB header and trailer, see https://tools.ietf.org/html/rfc1951. For HTTP 'deflate' content-encoding should be false, see https://tools.ietf.org/html/rfc2616.