Class DeflateCompressor

java.lang.Object
akka.http.scaladsl.coding.Compressor
akka.http.scaladsl.coding.DeflateCompressor
Direct Known Subclasses:
GzipCompressor

public class DeflateCompressor extends Compressor
Deprecated.
DeflateCompressor is internal API and will be moved or removed in the future. Since 10.2.0.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
    DeflateCompressor(int compressionLevel)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final akka.util.ByteString
    compress(akka.util.ByteString input)
    Deprecated.
    Compresses the given input and returns compressed data.
    final akka.util.ByteString
    compressAndFinish(akka.util.ByteString input)
    Deprecated.
    Combines `compress` + `finish`
    final akka.util.ByteString
    compressAndFlush(akka.util.ByteString input)
    Deprecated.
    Combines `compress` + `flush`
    protected akka.util.ByteString
    compressWithBuffer(akka.util.ByteString input, byte[] buffer)
    Deprecated.
     
    static int
    Deprecated.
     
    protected Deflater
    Deprecated.
     
    static akka.util.ByteString
    drainDeflater(Deflater deflater, byte[] buffer, akka.util.ByteStringBuilder result)
    Deprecated.
     
    final akka.util.ByteString
    Deprecated.
    Closes this compressed stream and return the remaining compressed data.
    protected akka.util.ByteString
    finishWithBuffer(byte[] buffer)
    Deprecated.
     
    final akka.util.ByteString
    Deprecated.
    Flushes any output data and returns the currently remaining compressed data.
    protected akka.util.ByteString
    flushWithBuffer(byte[] buffer)
    Deprecated.
     
    static int
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeflateCompressor

      public DeflateCompressor(int compressionLevel)
      Deprecated.
    • DeflateCompressor

      public DeflateCompressor()
      Deprecated.
  • Method Details

    • MinBufferSize

      public static int MinBufferSize()
      Deprecated.
    • DefaultCompressionLevel

      public static int DefaultCompressionLevel()
      Deprecated.
    • drainDeflater

      public static akka.util.ByteString drainDeflater(Deflater deflater, byte[] buffer, akka.util.ByteStringBuilder result)
      Deprecated.
    • deflater

      protected Deflater deflater()
      Deprecated.
    • compressAndFlush

      public final akka.util.ByteString compressAndFlush(akka.util.ByteString input)
      Deprecated.
      Description copied from class: Compressor
      Combines `compress` + `flush`
      Specified by:
      compressAndFlush in class Compressor
    • compressAndFinish

      public final akka.util.ByteString compressAndFinish(akka.util.ByteString input)
      Deprecated.
      Description copied from class: Compressor
      Combines `compress` + `finish`
      Specified by:
      compressAndFinish in class Compressor
    • compress

      public final akka.util.ByteString compress(akka.util.ByteString input)
      Deprecated.
      Description copied from class: Compressor
      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.
      Specified by:
      compress in class Compressor
      Parameters:
      input - (undocumented)
      Returns:
      (undocumented)
    • flush

      public final akka.util.ByteString flush()
      Deprecated.
      Description copied from class: Compressor
      Flushes any output data and returns the currently remaining compressed data.
      Specified by:
      flush in class Compressor
      Returns:
      (undocumented)
    • finish

      public final akka.util.ByteString finish()
      Deprecated.
      Description copied from class: Compressor
      Closes this compressed stream and return the remaining compressed data. After calling this method, this Compressor cannot be used any further.
      Specified by:
      finish in class Compressor
      Returns:
      (undocumented)
    • compressWithBuffer

      protected akka.util.ByteString compressWithBuffer(akka.util.ByteString input, byte[] buffer)
      Deprecated.
    • flushWithBuffer

      protected akka.util.ByteString flushWithBuffer(byte[] buffer)
      Deprecated.
    • finishWithBuffer

      protected akka.util.ByteString finishWithBuffer(byte[] buffer)
      Deprecated.