public class DeflateCompressor extends Compressor
| Constructor and Description |
|---|
DeflateCompressor()
Deprecated.
|
DeflateCompressor(int compressionLevel)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.pekko.util.ByteString |
compress(org.apache.pekko.util.ByteString input)
Deprecated.
Compresses the given input and returns compressed data.
|
org.apache.pekko.util.ByteString |
compressAndFinish(org.apache.pekko.util.ByteString input)
Deprecated.
Combines `compress` + `finish`
|
org.apache.pekko.util.ByteString |
compressAndFlush(org.apache.pekko.util.ByteString input)
Deprecated.
Combines `compress` + `flush`
|
protected org.apache.pekko.util.ByteString |
compressWithBuffer(org.apache.pekko.util.ByteString input,
byte[] buffer)
Deprecated.
|
static int |
DefaultCompressionLevel()
Deprecated.
|
protected java.util.zip.Deflater |
deflater()
Deprecated.
|
static org.apache.pekko.util.ByteString |
drainDeflater(java.util.zip.Deflater deflater,
byte[] buffer,
org.apache.pekko.util.ByteStringBuilder result)
Deprecated.
|
org.apache.pekko.util.ByteString |
finish()
Deprecated.
Closes this compressed stream and return the remaining compressed data.
|
protected org.apache.pekko.util.ByteString |
finishWithBuffer(byte[] buffer)
Deprecated.
|
org.apache.pekko.util.ByteString |
flush()
Deprecated.
Flushes any output data and returns the currently remaining compressed data.
|
protected org.apache.pekko.util.ByteString |
flushWithBuffer(byte[] buffer)
Deprecated.
|
static int |
MinBufferSize()
Deprecated.
|
public DeflateCompressor(int compressionLevel)
public DeflateCompressor()
public static int MinBufferSize()
public static int DefaultCompressionLevel()
public static org.apache.pekko.util.ByteString drainDeflater(java.util.zip.Deflater deflater,
byte[] buffer,
org.apache.pekko.util.ByteStringBuilder result)
protected java.util.zip.Deflater deflater()
public final org.apache.pekko.util.ByteString compressAndFlush(org.apache.pekko.util.ByteString input)
CompressorcompressAndFlush in class Compressorpublic final org.apache.pekko.util.ByteString compressAndFinish(org.apache.pekko.util.ByteString input)
CompressorcompressAndFinish in class Compressorpublic final org.apache.pekko.util.ByteString compress(org.apache.pekko.util.ByteString input)
Compressorflush or compressAndFlush to make sure that all input data has been
compressed and pending output data has been returned.compress in class Compressorinput - (undocumented)public final org.apache.pekko.util.ByteString flush()
Compressorflush in class Compressorpublic final org.apache.pekko.util.ByteString finish()
Compressorfinish in class Compressorprotected org.apache.pekko.util.ByteString compressWithBuffer(org.apache.pekko.util.ByteString input,
byte[] buffer)
protected org.apache.pekko.util.ByteString flushWithBuffer(byte[] buffer)
protected org.apache.pekko.util.ByteString finishWithBuffer(byte[] buffer)