Class GzipCompressor
java.lang.Object
org.apache.pekko.http.scaladsl.coding.Compressor
org.apache.pekko.http.scaladsl.coding.DeflateCompressor
org.apache.pekko.http.scaladsl.coding.GzipCompressor
Internal API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.pekko.util.ByteString
compressWithBuffer
(org.apache.pekko.util.ByteString input, byte[] buffer) static int
protected Deflater
deflater()
protected org.apache.pekko.util.ByteString
finishWithBuffer
(byte[] buffer) protected org.apache.pekko.util.ByteString
flushWithBuffer
(byte[] buffer) Methods inherited from class org.apache.pekko.http.scaladsl.coding.DeflateCompressor
compress, compressAndFinish, compressAndFlush, drainDeflater, finish, flush, MinBufferSize
-
Constructor Details
-
GzipCompressor
public GzipCompressor(int compressionLevel) -
GzipCompressor
public GzipCompressor()
-
-
Method Details
-
DefaultCompressionLevel
public static int DefaultCompressionLevel() -
deflater
- Overrides:
deflater
in classDeflateCompressor
-
compressWithBuffer
protected org.apache.pekko.util.ByteString compressWithBuffer(org.apache.pekko.util.ByteString input, byte[] buffer) - Overrides:
compressWithBuffer
in classDeflateCompressor
-
flushWithBuffer
protected org.apache.pekko.util.ByteString flushWithBuffer(byte[] buffer) - Overrides:
flushWithBuffer
in classDeflateCompressor
-
finishWithBuffer
protected org.apache.pekko.util.ByteString finishWithBuffer(byte[] buffer) - Overrides:
finishWithBuffer
in classDeflateCompressor
-