Class 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.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      akka.util.ByteString compress​(akka.util.ByteString input)
      Deprecated.
      Compresses the given input and returns compressed data.
      akka.util.ByteString compressAndFinish​(akka.util.ByteString input)
      Deprecated.
      Combines `compress` + `finish`
      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 DefaultCompressionLevel()
      Deprecated.
       
      protected java.util.zip.Deflater deflater()
      Deprecated.
       
      static akka.util.ByteString drainDeflater​(java.util.zip.Deflater deflater, byte[] buffer, akka.util.ByteStringBuilder result)
      Deprecated.
       
      akka.util.ByteString finish()
      Deprecated.
      Closes this compressed stream and return the remaining compressed data.
      protected akka.util.ByteString finishWithBuffer​(byte[] buffer)
      Deprecated.
       
      akka.util.ByteString flush()
      Deprecated.
      Flushes any output data and returns the currently remaining compressed data.
      protected akka.util.ByteString flushWithBuffer​(byte[] buffer)
      Deprecated.
       
      static int MinBufferSize()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

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

      • DeflateCompressor

        public DeflateCompressor​(int compressionLevel)
        Deprecated.
      • DeflateCompressor

        public DeflateCompressor()
        Deprecated.
    • Method Detail

      • MinBufferSize

        public static int MinBufferSize()
        Deprecated.
      • DefaultCompressionLevel

        public static int DefaultCompressionLevel()
        Deprecated.
      • drainDeflater

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

        protected java.util.zip.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.