public enum FloatCodecs extends Enum<FloatCodecs> implements FloatCodecInterface, CodecInterface
Enum Constant and Description |
---|
INT_DELTA_RECURSIVE
Encoding a list of floats (e.g.
|
INT_RUNLENGTH
Encoding a list of floats (e.g.
|
Modifier and Type | Method and Description |
---|---|
static float[] |
decodeArr(byte[] inputData)
Decode a byte array from an input array.
|
static FloatCodecs |
getCodec(int codecId)
Get the codec from an input byte.
|
int |
getCodecId() |
String |
getCodecName() |
static FloatCodecs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FloatCodecs[] |
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, valueOf
decode, encode
public static final FloatCodecs INT_DELTA_RECURSIVE
public static final FloatCodecs INT_RUNLENGTH
public static FloatCodecs[] values()
for (FloatCodecs c : FloatCodecs.values()) System.out.println(c);
public static FloatCodecs 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 FloatCodecs getCodec(int codecId)
codecId
- the integer defining the codingpublic static float[] decodeArr(byte[] inputData)
inputData
- the byte array of datapublic String getCodecName()
getCodecName
in interface CodecInterface
public int getCodecId()
getCodecId
in interface CodecInterface
Copyright © 2015–2016 RCSB PDB. All rights reserved.