public enum MajorType extends Enum<MajorType>
Enum Constant and Description |
---|
ARRAY
Major type 4: an array of data items.
|
BYTE_STRING
Major type 2: a byte string.
|
MAP
Major type 5: a map of pairs of data items.
|
NEGATIVE_INTEGER
Major type 1: a negative integer.
|
SPECIAL
Major type 7: floating point numbers and simple data types that need no
content, as well as the "break" stop code.
|
TAG
Major type 6: optional semantic tagging of other major types.
|
UNICODE_STRING
Major type 3: string of Unicode characters that is encoded as UTF-8
[RFC3629].
|
UNSIGNED_INTEGER
Major type 0: an unsigned integer.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static MajorType |
ofByte(int b) |
static MajorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MajorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MajorType UNSIGNED_INTEGER
public static final MajorType NEGATIVE_INTEGER
public static final MajorType BYTE_STRING
public static final MajorType UNICODE_STRING
public static final MajorType ARRAY
public static final MajorType MAP
public static final MajorType TAG
public static final MajorType SPECIAL
public static MajorType[] values()
for (MajorType c : MajorType.values()) System.out.println(c);
public static MajorType 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 getValue()
public static MajorType ofByte(int b)
Copyright © 2014. All Rights Reserved.