Class Compressor

  • Direct Known Subclasses:
    DeflateCompressor, NoCodingCompressor$

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

      Constructors 
      Constructor Description
      Compressor()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
      Releases any native resources held by this Compressor.
      abstract akka.util.ByteString compress​(akka.util.ByteString input)
      Deprecated.
      Compresses the given input and returns compressed data.
      abstract akka.util.ByteString compressAndFinish​(akka.util.ByteString input)
      Deprecated.
      Combines `compress` + `finish`
      abstract akka.util.ByteString compressAndFlush​(akka.util.ByteString input)
      Deprecated.
      Combines `compress` + `flush`
      abstract akka.util.ByteString finish()
      Deprecated.
      Closes this compressed stream and return the remaining compressed data.
      abstract akka.util.ByteString flush()
      Deprecated.
      Flushes any output data and returns the currently remaining compressed data.
      • Methods inherited from class java.lang.Object

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

      • Compressor

        public Compressor()
        Deprecated.
    • Method Detail

      • close

        public void close()
        Deprecated.
        Releases any native resources held by this Compressor. Called when the encoding stream terminates, whether by normal completion (in addition to finish), cancellation, or failure. Must be safe to call more than once. Default implementation does nothing.
      • compress

        public abstract akka.util.ByteString compress​(akka.util.ByteString input)
        Deprecated.
        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.
        Parameters:
        input - (undocumented)
        Returns:
        (undocumented)
      • compressAndFinish

        public abstract akka.util.ByteString compressAndFinish​(akka.util.ByteString input)
        Deprecated.
        Combines `compress` + `finish`
      • compressAndFlush

        public abstract akka.util.ByteString compressAndFlush​(akka.util.ByteString input)
        Deprecated.
        Combines `compress` + `flush`
      • finish

        public abstract akka.util.ByteString finish()
        Deprecated.
        Closes this compressed stream and return the remaining compressed data. After calling this method, this Compressor cannot be used any further.
        Returns:
        (undocumented)
      • flush

        public abstract akka.util.ByteString flush()
        Deprecated.
        Flushes any output data and returns the currently remaining compressed data.
        Returns:
        (undocumented)