public abstract class AbstractSerializationStreamReader extends AbstractSerializationStream implements SerializationStreamReader
DEFAULT_FLAGS, FLAG_ELIDE_TYPE_NAMES, FLAG_RPC_TOKEN_INCLUDED, RPC_SEPARATOR_CHAR, SERIALIZATION_STREAM_JSON_VERSION, SERIALIZATION_STREAM_MAX_VERSION, SERIALIZATION_STREAM_MIN_VERSION, SERIALIZATION_STREAM_VERSION, VALID_FLAGS_MASK
Constructor and Description |
---|
AbstractSerializationStreamReader() |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
deserialize(String typeSignature)
Deserialize an object with the given type signature.
|
static long |
fromDoubles(double lowDouble,
double highDouble)
Return a long from a pair of doubles { low, high } such that the
actual value is equal to high + low.
|
protected Object |
getDecodedObject(int index)
Get the previously seen object at the given index which must be 1-based.
|
protected abstract String |
getString(int index)
Gets a string out of the string table.
|
void |
prepareToRead(String encoded)
Prepare to read the stream.
|
Object |
readObject() |
protected void |
rememberDecodedObject(int index,
Object o)
Set an object in the seen list.
|
protected int |
reserveDecodedObjectIndex()
Reserve an entry for an object in the seen list.
|
addFlags, areFlagsValid, getFlags, getVersion, hasFlags, setFlags, setVersion
readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, readString
public static long fromDoubles(double lowDouble, double highDouble)
public void prepareToRead(String encoded) throws SerializationException
encoded
- unused true if the stream is encodedSerializationException
public final Object readObject() throws SerializationException
readObject
in interface SerializationStreamReader
SerializationException
protected abstract Object deserialize(String typeSignature) throws SerializationException
typeSignature
- the type signature to deserializeSerializationException
protected final Object getDecodedObject(int index)
index
- a 1-based index into the seen objectsprotected abstract String getString(int index)
index
- the index of the string to getprotected final void rememberDecodedObject(int index, Object o)
index
- a 1-based index into the seen objectso
- the object to rememberprotected final int reserveDecodedObjectIndex()
Copyright © 2016. All rights reserved.