com.google.gwt.user.client.rpc.impl
Class AbstractSerializationStream

java.lang.Object
  extended by com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
Direct Known Subclasses:
AbstractSerializationStreamReader, AbstractSerializationStreamWriter

public abstract class AbstractSerializationStream
extends java.lang.Object

Base class for the client and server serialization streams. This class handles the basic serialization and deserialization formatting for primitive types since these are common between the client and the server.


Field Summary
static int DEFAULT_FLAGS
          The default flags to be used by serialization streams.
static int FLAG_ELIDE_TYPE_NAMES
          Indicates that obfuscated type names should be used in the RPC payload.
static char RPC_SEPARATOR_CHAR
          The character used to separate fields in client->server RPC messages.
static int SERIALIZATION_STREAM_MIN_VERSION
          The oldest supported RPC protocol version.
static int SERIALIZATION_STREAM_VERSION
          The current RPC protocol version.
 
Constructor Summary
AbstractSerializationStream()
           
 
Method Summary
 void addFlags(int flags)
           
 int getFlags()
           
 int getVersion()
           
 boolean hasFlags(int flags)
           
 void setFlags(int flags)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FLAGS

public static final int DEFAULT_FLAGS
The default flags to be used by serialization streams.

See Also:
Constant Field Values

RPC_SEPARATOR_CHAR

public static final char RPC_SEPARATOR_CHAR
The character used to separate fields in client->server RPC messages. Note that this character is referenced in the following places not using this constant, and they must be changed if this is:

See Also:
Constant Field Values

SERIALIZATION_STREAM_VERSION

public static final int SERIALIZATION_STREAM_VERSION
The current RPC protocol version. This version differs from the previous one in that primitive long values are represented as single-quoted base-64 strings with an alphabet of [A-Za-z0-9$_], rather than as pairs of doubles.

See Also:
Constant Field Values

SERIALIZATION_STREAM_MIN_VERSION

public static final int SERIALIZATION_STREAM_MIN_VERSION
The oldest supported RPC protocol version.

See Also:
Constant Field Values

FLAG_ELIDE_TYPE_NAMES

public static final int FLAG_ELIDE_TYPE_NAMES
Indicates that obfuscated type names should be used in the RPC payload.

See Also:
Constant Field Values
Constructor Detail

AbstractSerializationStream

public AbstractSerializationStream()
Method Detail

addFlags

public final void addFlags(int flags)

getFlags

public final int getFlags()

getVersion

public final int getVersion()

hasFlags

public final boolean hasFlags(int flags)

setFlags

public final void setFlags(int flags)