public final class ClientSerializationStreamReader extends AbstractSerializationStreamReader
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 |
---|
ClientSerializationStreamReader(Serializer serializer) |
Modifier and Type | Method and Description |
---|---|
protected Object |
deserialize(String typeSignature)
Deserialize an object with the given type signature.
|
protected String |
getString(int index)
Gets a string out of the string table.
|
void |
prepareToRead(String encoded)
Prepare to read the stream.
|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
String |
readString() |
fromDoubles, getDecodedObject, readObject, rememberDecodedObject, reserveDecodedObjectIndex
addFlags, areFlagsValid, getFlags, getVersion, hasFlags, setFlags, setVersion
public ClientSerializationStreamReader(Serializer serializer)
public void prepareToRead(String encoded) throws SerializationException
AbstractSerializationStreamReader
prepareToRead
in class AbstractSerializationStreamReader
encoded
- unused true if the stream is encodedSerializationException
public boolean readBoolean()
public byte readByte()
public char readChar()
public double readDouble()
public float readFloat()
public int readInt()
public long readLong()
public short readShort()
public String readString()
protected Object deserialize(String typeSignature) throws SerializationException
AbstractSerializationStreamReader
deserialize
in class AbstractSerializationStreamReader
typeSignature
- the type signature to deserializeSerializationException
protected String getString(int index)
AbstractSerializationStreamReader
getString
in class AbstractSerializationStreamReader
index
- the index of the string to getCopyright © 2018. All rights reserved.