| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract ByteBuffer | |
| protected static int | |
| public abstract ByteBuffer | |
| public abstract boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public abstract String | |
| public abstract int | hashCode()
Overrides java. |
| public String |
| Codec | back to summary |
|---|---|
| public Codec() | |
| compress | back to summary |
|---|---|
| public abstract ByteBuffer compress(ByteBuffer uncompressedData) throws IOException Compresses the input data | |
| computeOffset | back to summary |
|---|---|
| protected static int computeOffset(ByteBuffer data) | |
| decompress | back to summary |
|---|---|
| public abstract ByteBuffer decompress(ByteBuffer compressedData) throws IOException Decompress the data | |
| equals | back to summary |
|---|---|
| public abstract boolean equals(Object other) Overrides java. 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 abstract String getName() Name of the codec; written to the file's metadata. | |
| hashCode | back to summary |
|---|---|
| public abstract int hashCode() Overrides java. Codecs must implement a hashCode() method that is consistent with equals().
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |