Class Token

java.lang.Object
com.thoughtworks.xstream.io.binary.Token
Direct Known Subclasses:
Token.Attribute, Token.EndNode, Token.MapIdToValue, Token.StartNode, Token.Value

public abstract class Token extends Object
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.

Since:
1.2
See Also: