Known Direct Subclasses
|
Class Overview
Represents the Tokens stored in the binary stream used by
BinaryStreamReader
and BinaryStreamWriter
.
A token consists of a type and (depending on this type)
it may additionally have an ID (positive long number)
and/or a value (String).
The first byte of the token represents how many subsequent
bytes are used by the ID.
Summary
Nested Classes |
class |
Token.Attribute |
|
class |
Token.EndNode |
|
class |
Token.Formatter |
|
class |
Token.MapIdToValue |
|
class |
Token.StartNode |
|
class |
Token.Value |
|
Public Constructors |
|
Token(byte type)
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
byte
TYPE_ATTRIBUTE
Constant Value:
5
(0x00000005)
public
static
final
byte
TYPE_END_NODE
Constant Value:
4
(0x00000004)
public
static
final
byte
TYPE_MAP_ID_TO_VALUE
Constant Value:
2
(0x00000002)
public
static
final
byte
TYPE_START_NODE
Constant Value:
3
(0x00000003)
public
static
final
byte
TYPE_VALUE
Constant Value:
6
(0x00000006)
public
static
final
byte
TYPE_VERSION
Constant Value:
1
(0x00000001)
Fields
Public Constructors
Public Methods
public
boolean
equals
(Object o)
public
abstract
void
readFrom
(DataInput in, byte idType)
public
abstract
void
writeTo
(DataOutput out, byte idType)
Protected Methods
protected
long
readId
(DataInput in, byte idType)
protected
void
writeId
(DataOutput out, long id, byte idType)