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.
BinaryStreamReader, BinaryStreamWriter
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected long | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final String | |
| private static final byte | |
| private static final int | |
| private final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| private static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| protected String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public long | |
| public byte | |
| public String | |
| public int | |
| public abstract void | |
| protected long | |
| protected String | |
| public String | |
| protected void | |
| protected void | |
| public abstract void |
| id | back to summary |
|---|---|
| protected long id | |
| ID_EIGHT_BYTES | back to summary |
|---|---|
| private static final byte ID_EIGHT_BYTES | |
| ID_FOUR_BYTES | back to summary |
|---|---|
| private static final byte ID_FOUR_BYTES | |
| ID_MASK | back to summary |
|---|---|
| private static final byte ID_MASK | |
| ID_ONE_BYTE | back to summary |
|---|---|
| private static final byte ID_ONE_BYTE | |
| ID_SPLITTED | back to summary |
|---|---|
| private static final String ID_SPLITTED | |
| ID_TWO_BYTES | back to summary |
|---|---|
| private static final byte ID_TWO_BYTES | |
| MAX_UTF8_LENGTH | back to summary |
|---|---|
| private static final int MAX_UTF8_LENGTH | |
| type | back to summary |
|---|---|
| private final byte type | |
| TYPE_ATTRIBUTE | back to summary |
|---|---|
| public static final byte TYPE_ATTRIBUTE | |
| TYPE_END_NODE | back to summary |
|---|---|
| public static final byte TYPE_END_NODE | |
| TYPE_MAP_ID_TO_VALUE | back to summary |
|---|---|
| public static final byte TYPE_MAP_ID_TO_VALUE | |
| TYPE_MASK | back to summary |
|---|---|
| private static final byte TYPE_MASK | |
| TYPE_START_NODE | back to summary |
|---|---|
| public static final byte TYPE_START_NODE | |
| TYPE_VALUE | back to summary |
|---|---|
| public static final byte TYPE_VALUE | |
| TYPE_VERSION | back to summary |
|---|---|
| public static final byte TYPE_VERSION | |
| value | back to summary |
|---|---|
| protected String value | |
| Token | back to summary |
|---|---|
| public Token(byte type) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getId | back to summary |
|---|---|
| public long getId() | |
| getType | back to summary |
|---|---|
| public byte getType() | |
| getValue | back to summary |
|---|---|
| public String getValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| readFrom | back to summary |
|---|---|
| public abstract void readFrom(DataInput in, byte idType) throws IOException | |
| readId | back to summary |
|---|---|
| protected long readId(DataInput in, byte idType) throws IOException | |
| readString | back to summary |
|---|---|
| protected String readString(DataInput in) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| writeId | back to summary |
|---|---|
| protected void writeId(DataOutput out, long id, byte idType) throws IOException | |
| writeString | back to summary |
|---|---|
| protected void writeString(DataOutput out, String string) throws IOException | |
| writeTo | back to summary |
|---|---|
| public abstract void writeTo(DataOutput out, byte idType) throws IOException | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | readFrom(DataInput in, byte idType)
Implements abstract com. |
| public void | writeTo(DataOutput out, byte idType)
Implements abstract com. |
| Attribute | back to summary |
|---|---|
| public Attribute(long id, String value) | |
| Attribute | back to summary |
|---|---|
| public Attribute() | |
| readFrom | back to summary |
|---|---|
| public void readFrom(DataInput in, byte idType) throws IOException Implements abstract com. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(DataOutput out, byte idType) throws IOException Implements abstract com. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | readFrom(DataInput in, byte idType)
Implements abstract com. |
| public void | writeTo(DataOutput out, byte idType)
Implements abstract com. |
| EndNode | back to summary |
|---|---|
| public EndNode() | |
| readFrom | back to summary |
|---|---|
| public void readFrom(DataInput in, byte idType) Implements abstract com. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(DataOutput out, byte idType) Implements abstract com. | |
| Access | Constructor and Description |
|---|---|
| public |
| Formatter | back to summary |
|---|---|
| public Formatter() | |
| contructToken | back to summary |
|---|---|
| private Token contructToken(byte type) | |
| read | back to summary |
|---|---|
| public Token read(DataInput in) throws IOException | |
| write | back to summary |
|---|---|
| public void write(DataOutput out, Token token) throws IOException | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | readFrom(DataInput in, byte idType)
Implements abstract com. |
| public void | writeTo(DataOutput out, byte idType)
Implements abstract com. |
| MapIdToValue | back to summary |
|---|---|
| public MapIdToValue(long id, String value) | |
| MapIdToValue | back to summary |
|---|---|
| public MapIdToValue() | |
| readFrom | back to summary |
|---|---|
| public void readFrom(DataInput in, byte idType) throws IOException Implements abstract com. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(DataOutput out, byte idType) throws IOException Implements abstract com. | |
| Modifier and Type | Method and Description |
|---|---|
| public void | readFrom(DataInput in, byte idType)
Implements abstract com. |
| public void | writeTo(DataOutput out, byte idType)
Implements abstract com. |
| StartNode | back to summary |
|---|---|
| public StartNode(long id) | |
| StartNode | back to summary |
|---|---|
| public StartNode() | |
| readFrom | back to summary |
|---|---|
| public void readFrom(DataInput in, byte idType) throws IOException Implements abstract com. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(DataOutput out, byte idType) throws IOException Implements abstract com. | |
| Modifier and Type | Method and Description |
|---|---|
| public void | readFrom(DataInput in, byte idType)
Implements abstract com. |
| public void | writeTo(DataOutput out, byte idType)
Implements abstract com. |
| Value | back to summary |
|---|---|
| public Value(String value) | |
| Value | back to summary |
|---|---|
| public Value() | |
| readFrom | back to summary |
|---|---|
| public void readFrom(DataInput in, byte idType) throws IOException Implements abstract com. | |
| writeTo | back to summary |
|---|---|
| public void writeTo(DataOutput out, byte idType) throws IOException Implements abstract com. | |