private static class CompressionMode.DeflateCompressor extends Compressor
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
closed |
(package private) byte[] |
compressed |
(package private) java.util.zip.Deflater |
compressor |
| Constructor and Description |
|---|
DeflateCompressor(int level) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
compress(byte[] bytes,
int off,
int len,
DataOutput out)
Compress bytes into
out. |
final java.util.zip.Deflater compressor
byte[] compressed
boolean closed
public void compress(byte[] bytes,
int off,
int len,
DataOutput out)
throws java.io.IOException
Compressorout. It is 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 Compressorjava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException