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
|
protected static int |
computeOffset(ByteBuffer 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()
protected static int computeOffset(ByteBuffer data)
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.