Packages

p

monix.reactive

compression

package compression

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. compression
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class CompressionException extends RuntimeException

    Signals that exception occurred in compression/decompression

  2. sealed abstract class CompressionLevel extends AnyRef
  3. final case class CompressionParameters(level: CompressionLevel, strategy: CompressionStrategy, flushMode: FlushMode) extends Product with Serializable
  4. sealed abstract class CompressionStrategy extends AnyRef
  5. sealed abstract class FlushMode extends AnyRef

Value Members

  1. def deflate(bufferSize: Int = 32 * 1024, compressionParameters: CompressionParameters = CompressionParameters.Default, noWrap: Boolean = false): (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.

    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.

  2. def gunzip(bufferSize: Int = 32 * 1024): (Observable[Array[Byte]]) => Observable[Array[Byte]]

    Decompresses gzipped stream.

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

    bufferSize

    Size of buffer used internally, affects performance.

  3. def gzip(bufferSize: Int = 32 * 1024, compressionParameters: CompressionParameters = CompressionParameters.Default, fileName: Option[String] = None, comment: Option[String] = None, modificationTime: Option[Instant] = None): (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

    bufferSize

    Size of buffer used internally, affects performance.

    compressionParameters

    see CompressionParameters

    fileName

    optional file name

    comment

    optional file modification time

    modificationTime

    optional file comment

  4. def inflate(bufferSize: Int = 32 * 1024, noWrap: Boolean = false): (Observable[Array[Byte]]) => Observable[Array[Byte]]

    Decompresses deflated stream.

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

    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.

  5. object CompressionException extends Serializable
  6. object CompressionLevel
  7. object CompressionParameters extends Serializable
  8. object CompressionStrategy
  9. object FlushMode

Inherited from AnyRef

Inherited from Any

Ungrouped