public class DeflateCompressor extends Compressor
Constructor and Description |
---|
DeflateCompressor()
Deprecated.
|
DeflateCompressor(int compressionLevel)
Deprecated.
|
Modifier and Type | Method and 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.
|
public DeflateCompressor(int compressionLevel)
public DeflateCompressor()
public static int MinBufferSize()
public static int DefaultCompressionLevel()
public static akka.util.ByteString drainDeflater(java.util.zip.Deflater deflater, byte[] buffer, akka.util.ByteStringBuilder result)
protected java.util.zip.Deflater deflater()
public final akka.util.ByteString compressAndFlush(akka.util.ByteString input)
Compressor
compressAndFlush
in class Compressor
public final akka.util.ByteString compressAndFinish(akka.util.ByteString input)
Compressor
compressAndFinish
in class Compressor
public final akka.util.ByteString compress(akka.util.ByteString input)
Compressor
flush
or compressAndFlush
to make sure that all input data has been
compressed and pending output data has been returned.compress
in class Compressor
input
- (undocumented)public final akka.util.ByteString flush()
Compressor
flush
in class Compressor
public final akka.util.ByteString finish()
Compressor
finish
in class Compressor
protected akka.util.ByteString compressWithBuffer(akka.util.ByteString input, byte[] buffer)
protected akka.util.ByteString flushWithBuffer(byte[] buffer)
protected akka.util.ByteString finishWithBuffer(byte[] buffer)