private static class CompressionMode.DeflateCompressor extends Compressor
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
compressed |
(package private) java.util.zip.Deflater |
compressor |
Constructor and Description |
---|
DeflateCompressor(int level) |
Modifier and Type | Method and Description |
---|---|
void |
compress(byte[] bytes,
int off,
int len,
DataOutput out)
Compress bytes into
out . |
public void compress(byte[] bytes, int off, int len, DataOutput out) throws java.io.IOException
Compressor
out
. It it the responsibility of the
compressor to add all necessary information so that a Decompressor
will know when to stop decompressing bytes from the stream.compress
in class Compressor
java.io.IOException