Enum Constant and Description |
---|
INT_TYPE |
STRING_TYPE |
Modifier and Type | Field and Description |
---|---|
static int |
STRING_LEN |
Modifier and Type | Method and Description |
---|---|
abstract int |
getLen() |
abstract Field |
parse(java.io.DataInputStream dis) |
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type INT_TYPE
public static final Type STRING_TYPE
public static final int STRING_LEN
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 abstract int getLen()
public abstract Field parse(java.io.DataInputStream dis) throws java.text.ParseException
dis
- The input stream to read fromjava.text.ParseException
- if the data read from the input stream is not
of the appropriate type.