| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | compress(ByteBuffer uncompressedData)
Implements abstract org. |
| public ByteBuffer | decompress(ByteBuffer compressedData)
Implements abstract org. |
| public boolean | equals(Object
the reference object with which to compare. obj)Implements abstract org. |
| public String | getName()
Implements abstract org. |
| public int | hashCode()
Implements abstract org. |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_BUFFER_SIZE | |
| BZip2Codec | back to summary |
|---|---|
| public BZip2Codec() | |
| compress | back to summary |
|---|---|
| public ByteBuffer compress(ByteBuffer uncompressedData) throws IOException Implements abstract org. Doc from org. Compresses the input data
| |
| decompress | back to summary |
|---|---|
| public ByteBuffer decompress(ByteBuffer compressedData) 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
| |
| 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().
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Codec | createInstance()
Implements abstract org. |
| Option | back to summary |
|---|---|
| pack-priv Option() | |
| createInstance | back to summary |
|---|---|
| protected Codec createInstance() Implements abstract org. Doc from org. Creates internal Codec.
| |