public final class

ServerSerializationStreamReader

extends AbstractSerializationStreamReader
java.lang.Object
   ↳ com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
     ↳ com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader
       ↳ com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader

Class Overview

For internal use only. Used for server call serialization. This class is carefully matched with the client-side version.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
Public Constructors
ServerSerializationStreamReader(ClassLoader classLoader, SerializationPolicyProvider serializationPolicyProvider)
Public Methods
Object deserializeValue(Class<?> type)
int getNumberOfTokens()
SerializationPolicy getSerializationPolicy()
void prepareToRead(String encodedTokens)
Prepare to read the stream.
boolean readBoolean()
byte readByte()
char readChar()
double readDouble()
float readFloat()
int readInt()
long readLong()
short readShort()
String readString()
Protected Methods
Object deserialize(String typeSignature)
Deserialize an object with the given type signature.
String getString(int index)
Gets a string out of the string table.
[Expand]
Inherited Methods
From class com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader
From class com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
From class java.lang.Object
From interface com.google.gwt.user.client.rpc.SerializationStreamReader

Public Constructors

public ServerSerializationStreamReader (ClassLoader classLoader, SerializationPolicyProvider serializationPolicyProvider)

Public Methods

public Object deserializeValue (Class<?> type)

public int getNumberOfTokens ()

public SerializationPolicy getSerializationPolicy ()

public void prepareToRead (String encodedTokens)

Prepare to read the stream.

Parameters
encodedTokens unused true if the stream is encoded

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 Methods

protected Object deserialize (String typeSignature)

Deserialize an object with the given type signature.

Parameters
typeSignature the type signature to deserialize
Returns
  • the deserialized object

protected String getString (int index)

Gets a string out of the string table.

Parameters
index the index of the string to get
Returns
  • the string