Package akka.http.scaladsl.coding
Class DeflateCompressor
- java.lang.Object
-
- akka.http.scaladsl.coding.Compressor
-
- akka.http.scaladsl.coding.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.
-
-
Constructor Summary
Constructors Constructor Description DeflateCompressor()
Deprecated.DeflateCompressor(int compressionLevel)
Deprecated.
-
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.
-
-
-
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 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.
-
-