public enum CodecUtils extends java.lang.Enum<CodecUtils>
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toBytesDirect(java.lang.String singleOctets) |
static java.lang.String |
toStringDirect(byte[] bytes) |
static CodecUtils |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CodecUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static CodecUtils[] values()
for (CodecUtils c : CodecUtils.values()) System.out.println(c);
public static CodecUtils valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static byte[] toBytesDirect(java.lang.String singleOctets)
singleOctets - the string of single octet.java.lang.IllegalArgumentException - if the input string contains any
multi-octet characterpublic static java.lang.String toStringDirect(byte[] bytes)
bytes - the bytes.