Class NoCodingCompressor$
java.lang.Object
org.apache.pekko.http.scaladsl.coding.Compressor
org.apache.pekko.http.scaladsl.coding.NoCodingCompressor$
Internal API
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NoCodingCompressor$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.util.ByteString
compress
(org.apache.pekko.util.ByteString input) Compresses the given input and returns compressed data.org.apache.pekko.util.ByteString
compressAndFinish
(org.apache.pekko.util.ByteString input) Combines `compress` + `finish`org.apache.pekko.util.ByteString
compressAndFlush
(org.apache.pekko.util.ByteString input) Combines `compress` + `flush`org.apache.pekko.util.ByteString
finish()
Closes this compressed stream and return the remaining compressed data.org.apache.pekko.util.ByteString
flush()
Flushes any output data and returns the currently remaining compressed data.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
NoCodingCompressor$
public NoCodingCompressor$()
-
-
Method Details
-
compress
public org.apache.pekko.util.ByteString compress(org.apache.pekko.util.ByteString input) 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. Useflush
orcompressAndFlush
to make sure that all input data has been compressed and pending output data has been returned.- Specified by:
compress
in classCompressor
- Parameters:
input
- (undocumented)- Returns:
- (undocumented)
-
flush
public org.apache.pekko.util.ByteString flush()Description copied from class:Compressor
Flushes any output data and returns the currently remaining compressed data.- Specified by:
flush
in classCompressor
- Returns:
- (undocumented)
-
finish
public org.apache.pekko.util.ByteString finish()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 classCompressor
- Returns:
- (undocumented)
-
compressAndFlush
public org.apache.pekko.util.ByteString compressAndFlush(org.apache.pekko.util.ByteString input) Description copied from class:Compressor
Combines `compress` + `flush`- Specified by:
compressAndFlush
in classCompressor
-
compressAndFinish
public org.apache.pekko.util.ByteString compressAndFinish(org.apache.pekko.util.ByteString input) Description copied from class:Compressor
Combines `compress` + `finish`- Specified by:
compressAndFinish
in classCompressor
-