public enum StringCodecs extends Enum<StringCodecs> implements StringCodecsInterface, CodecInterface
Enum Constant and Description |
---|
ENCOODE_CHAINS
Encode an array of Strings to a byte array.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
decodeArr(byte[] inputData)
Decode a byte array from an input array.
|
static StringCodecs |
getCodec(int codecId)
Decode a byte array from an input array.
|
int |
getCodecId() |
String |
getCodecName() |
static StringCodecs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringCodecs[] |
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 StringCodecs ENCOODE_CHAINS
public static StringCodecs[] values()
for (StringCodecs c : StringCodecs.values()) System.out.println(c);
public static StringCodecs 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 StringCodecs getCodec(int codecId)
codecId
- the int specifying the encoding strategypublic static String[] 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.