com.google.gwt.user.server.rpc.impl
Class ServerSerializationStreamReader

java.lang.Object
  extended by com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
      extended by com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader
          extended by com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
All Implemented Interfaces:
SerializationStreamReader

public final class ServerSerializationStreamReader
extends AbstractSerializationStreamReader

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


Field Summary
 
Fields inherited from class com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
DEFAULT_FLAGS, FLAG_ELIDE_TYPE_NAMES, RPC_SEPARATOR_CHAR, SERIALIZATION_STREAM_MIN_VERSION, SERIALIZATION_STREAM_VERSION
 
Constructor Summary
ServerSerializationStreamReader(java.lang.ClassLoader classLoader, SerializationPolicyProvider serializationPolicyProvider)
           
 
Method Summary
 java.lang.Object deserializeValue(java.lang.Class<?> type)
           
 int getNumberOfTokens()
           
 SerializationPolicy getSerializationPolicy()
           
 void prepareToRead(java.lang.String encodedTokens)
          Prepare to read the stream.
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 long readLong()
           
 short readShort()
           
 java.lang.String readString()
           
 
Methods inherited from class com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader
fromDoubles, readObject
 
Methods inherited from class com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
addFlags, getFlags, getVersion, hasFlags, setFlags
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSerializationStreamReader

public ServerSerializationStreamReader(java.lang.ClassLoader classLoader,
                                       SerializationPolicyProvider serializationPolicyProvider)
Method Detail

deserializeValue

public java.lang.Object deserializeValue(java.lang.Class<?> type)
                                  throws SerializationException
Throws:
SerializationException

getNumberOfTokens

public int getNumberOfTokens()

getSerializationPolicy

public SerializationPolicy getSerializationPolicy()

prepareToRead

public void prepareToRead(java.lang.String encodedTokens)
                   throws SerializationException
Description copied from class: AbstractSerializationStreamReader
Prepare to read the stream.

Overrides:
prepareToRead in class AbstractSerializationStreamReader
Parameters:
encodedTokens - unused true if the stream is encoded
Throws:
SerializationException

readBoolean

public boolean readBoolean()
                    throws SerializationException
Throws:
SerializationException

readByte

public byte readByte()
              throws SerializationException
Throws:
SerializationException

readChar

public char readChar()
              throws SerializationException
Throws:
SerializationException

readDouble

public double readDouble()
                  throws SerializationException
Throws:
SerializationException

readFloat

public float readFloat()
                throws SerializationException
Throws:
SerializationException

readInt

public int readInt()
            throws SerializationException
Throws:
SerializationException

readLong

public long readLong()
              throws SerializationException
Throws:
SerializationException

readShort

public short readShort()
                throws SerializationException
Throws:
SerializationException

readString

public java.lang.String readString()
                            throws SerializationException
Throws:
SerializationException