Package akka.http.scaladsl.coding
Class DeflateCompressor
java.lang.Object
akka.http.scaladsl.coding.Compressor
akka.http.scaladsl.coding.DeflateCompressor
- Direct Known Subclasses:
GzipCompressor
Deprecated.
DeflateCompressor is internal API and will be moved or removed in the future. Since 10.2.0.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal 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
deflater()
Deprecated.static akka.util.ByteString
drainDeflater
(Deflater deflater, byte[] buffer, akka.util.ByteStringBuilder result) Deprecated.final akka.util.ByteString
finish()
Deprecated.Closes this compressed stream and return the remaining compressed data.protected akka.util.ByteString
finishWithBuffer
(byte[] buffer) Deprecated.final 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
Deprecated.
-
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
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 classCompressor
-
compressAndFinish
public final akka.util.ByteString compressAndFinish(akka.util.ByteString input) Deprecated.Description copied from class:Compressor
Combines `compress` + `finish`- Specified by:
compressAndFinish
in classCompressor
-
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. 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 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 classCompressor
- 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 classCompressor
- 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.
-