public static enum Klv.LengthEncoding extends Enum<Klv.LengthEncoding>
Modifier and Type | Method and Description |
---|---|
int |
value()
Returns the number of bytes used to encode length, or zero if encoding is
BER |
static Klv.LengthEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Klv.LengthEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Klv.LengthEncoding OneByte
public static final Klv.LengthEncoding TwoBytes
public static final Klv.LengthEncoding FourBytes
public static final Klv.LengthEncoding BER
public static Klv.LengthEncoding[] values()
for (Klv.LengthEncoding c : Klv.LengthEncoding.values()) System.out.println(c);
public static Klv.LengthEncoding 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 int value()
BER
This work is licensed under a Creative Commons Attribution 4.0 International License.