public abstract class Codec extends Object
Constructor and Description |
---|
Codec() |
Modifier and Type | Method and Description |
---|---|
abstract ByteBuffer |
compress(ByteBuffer uncompressedData)
Compresses the input data
|
abstract ByteBuffer |
decompress(ByteBuffer compressedData)
Decompress the data
|
abstract boolean |
equals(Object other)
Codecs must implement an equals() method.
|
abstract String |
getName()
Name of the codec; written to the file's metadata.
|
abstract int |
hashCode()
Codecs must implement a hashCode() method that is consistent with equals().
|
String |
toString() |
public abstract String getName()
public abstract ByteBuffer compress(ByteBuffer uncompressedData) throws IOException
IOException
public abstract ByteBuffer decompress(ByteBuffer compressedData) throws IOException
IOException
public abstract boolean equals(Object other)
public abstract int hashCode()
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.