public abstract class Compressor
extends java.lang.Object
A stateful object representing ongoing compression.
Constructor and Description |
---|
Compressor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Make sure any resources have been released
|
abstract ByteString |
compress(ByteString input)
Compresses the given input and returns compressed data.
|
abstract ByteString |
compressAndFinish(ByteString input)
Combines `compress` + `finish`
|
abstract ByteString |
compressAndFlush(ByteString input)
Combines `compress` + `flush`
|
abstract ByteString |
finish()
Closes this compressed stream and return the remaining compressed data.
|
abstract ByteString |
flush()
Flushes any output data and returns the currently remaining compressed data.
|
public abstract ByteString compress(ByteString input)
flush
or compressAndFlush
to make sure that all input data has been
compressed and pending output data has been returned.input
- (undocumented)public abstract ByteString flush()
public abstract ByteString finish()
public abstract ByteString compressAndFlush(ByteString input)
public abstract ByteString compressAndFinish(ByteString input)
public abstract void close()