public final class ServerSerializationStreamReader extends AbstractSerializationStreamReader
DEFAULT_FLAGS, FLAG_ELIDE_TYPE_NAMES, FLAG_RPC_TOKEN_INCLUDED, RPC_SEPARATOR_CHAR, SERIALIZATION_STREAM_MIN_VERSION, SERIALIZATION_STREAM_VERSION, VALID_FLAGS_MASK
Constructor and Description |
---|
ServerSerializationStreamReader(ClassLoader classLoader,
SerializationPolicyProvider serializationPolicyProvider) |
Modifier and Type | Method and Description |
---|---|
protected Object |
deserialize(String typeSignature)
Deserialize an object with the given type signature.
|
protected Object |
deserialize(String typeSignature,
Type expectedType,
DequeMap<TypeVariable<?>,Type> resolvedTypes) |
Object |
deserializeValue(Class<?> rpcType) |
Object |
deserializeValue(Class<?> rpcType,
Type methodType,
DequeMap<TypeVariable<?>,Type> resolvedTypes) |
int |
getNumberOfTokens() |
SerializationPolicy |
getSerializationPolicy() |
protected String |
getString(int index)
Gets a string out of the string table.
|
void |
prepareToRead(String encodedTokens)
Prepare to read the stream.
|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
Object |
readObject(Type expectedType,
DequeMap<TypeVariable<?>,Type> resolvedTypes) |
short |
readShort() |
String |
readString() |
fromDoubles, getDecodedObject, readObject, rememberDecodedObject, reserveDecodedObjectIndex
addFlags, areFlagsValid, getFlags, getVersion, hasFlags, setFlags, setVersion
public ServerSerializationStreamReader(ClassLoader classLoader, SerializationPolicyProvider serializationPolicyProvider)
public Object deserializeValue(Class<?> rpcType) throws SerializationException
SerializationException
public Object deserializeValue(Class<?> rpcType, Type methodType, DequeMap<TypeVariable<?>,Type> resolvedTypes) throws SerializationException
SerializationException
public int getNumberOfTokens()
public SerializationPolicy getSerializationPolicy()
public void prepareToRead(String encodedTokens) throws SerializationException
AbstractSerializationStreamReader
prepareToRead
in class AbstractSerializationStreamReader
encodedTokens
- unused true if the stream is encodedSerializationException
public boolean readBoolean() throws SerializationException
SerializationException
public byte readByte() throws SerializationException
SerializationException
public char readChar() throws SerializationException
SerializationException
public double readDouble() throws SerializationException
SerializationException
public float readFloat() throws SerializationException
SerializationException
public int readInt() throws SerializationException
SerializationException
public long readLong() throws SerializationException
SerializationException
public Object readObject(Type expectedType, DequeMap<TypeVariable<?>,Type> resolvedTypes) throws SerializationException
SerializationException
public short readShort() throws SerializationException
SerializationException
public String readString() throws SerializationException
SerializationException
protected Object deserialize(String typeSignature) throws SerializationException
AbstractSerializationStreamReader
deserialize
in class AbstractSerializationStreamReader
typeSignature
- the type signature to deserializeSerializationException
protected Object deserialize(String typeSignature, Type expectedType, DequeMap<TypeVariable<?>,Type> resolvedTypes) throws SerializationException
SerializationException
protected String getString(int index)
AbstractSerializationStreamReader
getString
in class AbstractSerializationStreamReader
index
- the index of the string to getCopyright © 2018. All rights reserved.