
public enum IntCodecs extends Enum<IntCodecs> implements IntCodecInterface, CodecInterface
| Enum Constant and Description |
|---|
CONVERT_4_BYTE
Convert integers to a byte array - encoding each integer as a four byte integer.
|
CONVERT_BYTE
Convert integers to a byte array - encoding each integer as a one byte integer.
|
RUN_LENGTH_DELTA
Encoding first performs delta encoding and then run length
encoding on top.
|
| Modifier and Type | Method and Description |
|---|---|
static int[] |
decodeArr(byte[] inputData)
Decode a byte array from an input array.
|
static IntCodecs |
getCodec(int codecId)
Get the codec from an input byte.
|
int |
getCodecId() |
String |
getCodecName() |
static IntCodecs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntCodecs[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfdecode, encodepublic static final IntCodecs RUN_LENGTH_DELTA
public static final IntCodecs CONVERT_4_BYTE
public static final IntCodecs CONVERT_BYTE
public static IntCodecs[] values()
for (IntCodecs c : IntCodecs.values()) System.out.println(c);
public static IntCodecs valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static IntCodecs getCodec(int codecId)
codecId - the byte defining the codingpublic static int[] decodeArr(byte[] inputData)
inputData - the byte array of datapublic String getCodecName()
getCodecName in interface CodecInterfacepublic int getCodecId()
getCodecId in interface CodecInterfaceCopyright © 2015–2016 RCSB PDB. All rights reserved.