public final class

ClientSerializationStreamWriter

extends AbstractSerializationStreamWriter
java.lang.Object
   ↳ com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
     ↳ com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter
       ↳ com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter

Class Overview

For internal use only. Used for server call serialization.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
Public Constructors
ClientSerializationStreamWriter(Serializer serializer, String moduleBaseURL, String serializationPolicyStrongName)
Constructs a ClientSerializationStreamWriter using the specified module base URL and the serialization policy.
Public Methods
void prepareToWrite()
Call this method before attempting to append any tokens.
static String quoteString(String str)
Quote characters in a user-supplied string to make sure they are safe to send to the server.
String toString()
void writeLong(long value)
Protected Methods
void append(String token)
Appends a token to the end of the buffer.
String getObjectTypeSignature(Object o)
Compute and return the type signature for an object.
void serialize(Object instance, String typeSignature)
Serialize an object into the stream.
[Expand]
Inherited Methods
From class com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter
From class com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
From class java.lang.Object
From interface com.google.gwt.user.client.rpc.SerializationStreamWriter

Public Constructors

public ClientSerializationStreamWriter (Serializer serializer, String moduleBaseURL, String serializationPolicyStrongName)

Constructs a ClientSerializationStreamWriter using the specified module base URL and the serialization policy.

Parameters
serializer the Serializer to use
moduleBaseURL the location of the module
serializationPolicyStrongName the strong name of serialization policy

Public Methods

public void prepareToWrite ()

Call this method before attempting to append any tokens. This method implementation must be called by any overridden version.

public static String quoteString (String str)

Quote characters in a user-supplied string to make sure they are safe to send to the server.

Parameters
str string to quote
Returns
  • quoted string

public String toString ()

public void writeLong (long value)

Protected Methods

protected void append (String token)

Appends a token to the end of the buffer.

Parameters
token the token to append

protected String getObjectTypeSignature (Object o)

Compute and return the type signature for an object.

Parameters
o the instance to inspect
Returns
  • the type signature of the instance

protected void serialize (Object instance, String typeSignature)

Serialize an object into the stream.

Parameters
instance the object to serialize
typeSignature the type signature of the object