Packages

abstract class Compressor extends AnyRef

A stateful object representing ongoing compression.

Annotations
@InternalApi() @deprecated
Deprecated

(Since version 10.2.0) Compressor is internal API and will be moved or removed in the future.

Source
Encoder.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Compressor
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Compressor()

Abstract Value Members

  1. abstract def compress(input: ByteString): ByteString

    Compresses the given input and returns compressed data.

    Compresses the given input and returns compressed data. The implementation can and will choose to buffer output data to improve compression. Use flush or compressAndFlush to make sure that all input data has been compressed and pending output data has been returned.

  2. abstract def compressAndFinish(input: ByteString): ByteString

    Combines compress + finish

  3. abstract def compressAndFlush(input: ByteString): ByteString

    Combines compress + flush

  4. abstract def finish(): ByteString

    Closes this compressed stream and return the remaining compressed data.

    Closes this compressed stream and return the remaining compressed data. After calling this method, this Compressor cannot be used any further.

  5. abstract def flush(): ByteString

    Flushes any output data and returns the currently remaining compressed data.