public enum LengthRwPrimitiveType extends java.lang.Enum<LengthRwPrimitiveType> implements LengthRw
Modifier and Type | Method and Description |
---|---|
int |
getSize() |
int |
readFromBuffer(java.nio.ByteBuffer buffer) |
boolean |
validate(int length) |
static LengthRwPrimitiveType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LengthRwPrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToBuffer(java.nio.ByteBuffer buffer,
int length) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
maxStringLen
public static final LengthRwPrimitiveType BYTE
public static final LengthRwPrimitiveType UBYTE
public static final LengthRwPrimitiveType SHORT
public static final LengthRwPrimitiveType INTEGER
public static LengthRwPrimitiveType[] values()
for (LengthRwPrimitiveType c : LengthRwPrimitiveType.values()) System.out.println(c);
public static LengthRwPrimitiveType 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 int readFromBuffer(java.nio.ByteBuffer buffer)
readFromBuffer
in interface LengthRw
public void writeToBuffer(java.nio.ByteBuffer buffer, int length)
writeToBuffer
in interface LengthRw