package compression
- Alphabetic
- By Inheritance
- compression
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
CompressionException extends RuntimeException
Signals that exception occurred in compression/decompression
- sealed abstract class CompressionLevel extends AnyRef
- final case class CompressionParameters(level: CompressionLevel, strategy: CompressionStrategy, flushMode: FlushMode) extends Product with Serializable
- sealed abstract class CompressionStrategy extends AnyRef
- sealed abstract class FlushMode extends AnyRef
Value Members
-
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
- 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 = 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.
-
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
- fileName
optional file name
- comment
optional file modification time
- modificationTime
optional file comment
-
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.
- object CompressionException extends Serializable
- object CompressionLevel
- object CompressionParameters extends Serializable
- object CompressionStrategy
- object FlushMode