Class Compressor
java.lang.Object
org.apache.pekko.http.scaladsl.coding.Compressor
- Direct Known Subclasses:
- DeflateCompressor,- NoCodingCompressor$
Deprecated.
Compressor is internal API and will be moved or removed in the future. Since Akka HTTP 10.2.0.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract org.apache.pekko.util.ByteStringcompress(org.apache.pekko.util.ByteString input) Deprecated.Compresses the given input and returns compressed data.abstract org.apache.pekko.util.ByteStringcompressAndFinish(org.apache.pekko.util.ByteString input) Deprecated.Combines `compress` + `finish`abstract org.apache.pekko.util.ByteStringcompressAndFlush(org.apache.pekko.util.ByteString input) Deprecated.Combines `compress` + `flush`abstract org.apache.pekko.util.ByteStringfinish()Deprecated.Closes this compressed stream and return the remaining compressed data.abstract org.apache.pekko.util.ByteStringflush()Deprecated.Flushes any output data and returns the currently remaining compressed data.
- 
Constructor Details- 
Compressorpublic Compressor()Deprecated.
 
- 
- 
Method Details- 
compresspublic abstract org.apache.pekko.util.ByteString compress(org.apache.pekko.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. UseflushorcompressAndFlushto make sure that all input data has been compressed and pending output data has been returned.- Parameters:
- input- (undocumented)
- Returns:
- (undocumented)
 
- 
compressAndFinishpublic abstract org.apache.pekko.util.ByteString compressAndFinish(org.apache.pekko.util.ByteString input) Deprecated.Combines `compress` + `finish`
- 
compressAndFlushpublic abstract org.apache.pekko.util.ByteString compressAndFlush(org.apache.pekko.util.ByteString input) Deprecated.Combines `compress` + `flush`
- 
finishpublic abstract org.apache.pekko.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)
 
- 
flushpublic abstract org.apache.pekko.util.ByteString flush()Deprecated.Flushes any output data and returns the currently remaining compressed data.- Returns:
- (undocumented)
 
 
-