Inflater
and Deflater
, is using RFC1951.
Modifier and Type | Class and Description |
---|---|
pack-priv static class |
Modifier and Type | Field and Description |
---|---|
private int | |
private static final int | |
private Deflater | |
private Inflater | |
private boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public ByteBuffer | compress(ByteBuffer data)
Implements abstract org. |
public ByteBuffer | decompress(ByteBuffer data)
Implements abstract org. |
public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract org. |
private Deflater | |
private Inflater | |
public String | getName()
Implements abstract org. |
public int | hashCode()
Implements abstract org. |
public String | toString()
Overrides org. |
compressionLevel | back to summary |
---|---|
private int compressionLevel |
DEFAULT_BUFFER_SIZE | back to summary |
---|---|
private static final int DEFAULT_BUFFER_SIZE |
deflater | back to summary |
---|---|
private Deflater deflater |
inflater | back to summary |
---|---|
private Inflater inflater |
nowrap | back to summary |
---|---|
private boolean nowrap |
DeflateCodec | back to summary |
---|---|
public DeflateCodec(int compressionLevel) |
compress | back to summary |
---|---|
public ByteBuffer compress(ByteBuffer data) throws IOException Implements abstract org. Doc from org. Compresses the input data
|
decompress | back to summary |
---|---|
public ByteBuffer decompress(ByteBuffer data) throws IOException Implements abstract org. Doc from org. Decompress the data
|
equals | back to summary |
---|---|
public boolean equals(Object obj) Implements abstract org. Doc from org. Codecs must implement an equals() method. Two codecs, A and B are equal if: the result of A and B decompressing content compressed by A is the same AND the result of A and B decompressing content compressed by B is the same
|
getDeflater | back to summary |
---|---|
private Deflater getDeflater() |
getInflater | back to summary |
---|---|
private Inflater getInflater() |
getName | back to summary |
---|---|
public String getName() Implements abstract org. Doc from org. Name of the codec; written to the file's metadata.
|
hashCode | back to summary |
---|---|
public int hashCode() Implements abstract org. Doc from org. Codecs must implement a hashCode() method that is consistent with equals().
|
toString | back to summary |
---|---|
public String toString() Overrides org. Doc from java. Returns a string representation of the object. |
Modifier and Type | Field and Description |
---|---|
private int |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected Codec | createInstance()
Implements abstract org. |
compressionLevel | back to summary |
---|---|
private int compressionLevel |
Option | back to summary |
---|---|
pack-priv Option(int compressionLevel) |
createInstance | back to summary |
---|---|
protected Codec createInstance() Implements abstract org. Doc from org. Creates internal Codec.
|