public enum BinaryToken extends java.lang.Enum<BinaryToken>
Enum Constant and Description |
---|
ATTACHMENTS_END
attachment list end.
|
ATTACHMENTS_START
attachment list start.
|
BINARY_1
(followed by) 1-byte binary object length (and binary object).
|
BINARY_2
(followed by) 2-byte binary object length (and binary object).
|
BINARY_3
(followed by) 3-byte binary object length (and binary object).
|
BINARY_4
(followed by) 4-byte binary object length (and binary object).
|
CUSTOM
custom type token, followed by string to name the custom type.
|
MAPPING_END
mapping end.
|
MAPPING_START
mapping start.
|
OBJECT_END
object end.
|
OBJECT_START
object start.
|
SCALAR_BOOL_FALSE
boolean FALSE.
|
SCALAR_BOOL_TRUE
boolean TRUE.
|
SCALAR_DOUBLE
(followed by) 8 byte float value.
|
SCALAR_INT_1
(followed by) 1 byte positive integer.
|
SCALAR_INT_1_N
(followed by) 1 byte negative integer.
|
SCALAR_INT_2
(followed by) 2 byte positive integer.
|
SCALAR_INT_2_N
(followed by) 2 byte negative integer.
|
SCALAR_INT_3
(followed by) 3 byte positive integer.
|
SCALAR_INT_3_N
(followed by) 3 byte negative integer.
|
SCALAR_INT_4
(followed by) 4 byte positive integer.
|
SCALAR_INT_4_N
(followed by) 4 byte negative integer.
|
SCALAR_INT_5
(followed by) 5 byte positive integer.
|
SCALAR_INT_5_N
(followed by) 5 byte negative integer.
|
SCALAR_INT_6
(followed by) 6 byte positive integer.
|
SCALAR_INT_6_N
(followed by) 6 byte negative integer.
|
SCALAR_INT_7
(followed by) 7 byte positive integer.
|
SCALAR_INT_7_N
(followed by) 7 byte negative integer.
|
SCALAR_INT_8
(followed by) 8 byte positive integer.
|
SCALAR_INT_8_N
(followed by) 8 byte negative integer.
|
SCALAR_STRING_1
(followed by) 1 byte string length (and string).
|
SCALAR_STRING_2
(followed by) 2 byte string length (and string).
|
SCALAR_STRING_3
(followed by) 3 byte string length (and string).
|
SCALAR_STRING_4
(followed by) 4 byte string length (and string).
|
SEQUENCE_END
sequence end.
|
SEQUENCE_START
sequence start.
|
Modifier and Type | Method and Description |
---|---|
IpcToken |
asIpcToken() |
byte |
byteValue() |
static BinaryToken |
getToken(int byteValue) |
boolean |
hasNegativeValue() |
boolean |
hasValue() |
int |
valueLength() |
static BinaryToken |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BinaryToken[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BinaryToken SCALAR_INT_1
public static final BinaryToken SCALAR_INT_2
public static final BinaryToken SCALAR_INT_3
public static final BinaryToken SCALAR_INT_4
public static final BinaryToken SCALAR_INT_5
public static final BinaryToken SCALAR_INT_6
public static final BinaryToken SCALAR_INT_7
public static final BinaryToken SCALAR_INT_8
public static final BinaryToken SCALAR_INT_1_N
public static final BinaryToken SCALAR_INT_2_N
public static final BinaryToken SCALAR_INT_3_N
public static final BinaryToken SCALAR_INT_4_N
public static final BinaryToken SCALAR_INT_5_N
public static final BinaryToken SCALAR_INT_6_N
public static final BinaryToken SCALAR_INT_7_N
public static final BinaryToken SCALAR_INT_8_N
public static final BinaryToken SCALAR_BOOL_TRUE
public static final BinaryToken SCALAR_BOOL_FALSE
public static final BinaryToken SCALAR_DOUBLE
public static final BinaryToken SCALAR_STRING_1
public static final BinaryToken SCALAR_STRING_2
public static final BinaryToken SCALAR_STRING_3
public static final BinaryToken SCALAR_STRING_4
public static final BinaryToken OBJECT_START
public static final BinaryToken OBJECT_END
public static final BinaryToken SEQUENCE_START
public static final BinaryToken SEQUENCE_END
public static final BinaryToken MAPPING_START
public static final BinaryToken MAPPING_END
public static final BinaryToken ATTACHMENTS_START
public static final BinaryToken ATTACHMENTS_END
public static final BinaryToken BINARY_1
public static final BinaryToken BINARY_2
public static final BinaryToken BINARY_3
public static final BinaryToken BINARY_4
public static final BinaryToken CUSTOM
public static BinaryToken[] values()
for (BinaryToken c : BinaryToken.values()) System.out.println(c);
public static BinaryToken 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 byte byteValue()
public int valueLength()
public IpcToken asIpcToken()
public static BinaryToken getToken(int byteValue)
byteValue
- a byte value.public boolean hasValue()
true
if token has value, otherwise false
.public boolean hasNegativeValue()
true
if token has negative value, otherwise false
.
This is needed for scalar integers.