com.google.gwt.user.client.rpc.impl
Interface Serializer

All Known Implementing Classes:
SerializerBase

public interface Serializer

Contract for any class that can serialize and restore class into a serialization stream.


Method Summary
 void deserialize(SerializationStreamReader stream, java.lang.Object instance, java.lang.String typeSignature)
          Restore an instantiated object from the serialized stream.
 java.lang.String getSerializationSignature(java.lang.Class<?> clazz)
          Return the serialization signature for the given type.
 java.lang.Object instantiate(SerializationStreamReader stream, java.lang.String typeSignature)
          Instantiate an object of the given typeName from the serialized stream.
 void serialize(SerializationStreamWriter stream, java.lang.Object instance, java.lang.String typeSignature)
          Save an instance into the serialization stream.
 

Method Detail

deserialize

void deserialize(SerializationStreamReader stream,
                 java.lang.Object instance,
                 java.lang.String typeSignature)
                 throws SerializationException
Restore an instantiated object from the serialized stream.

Throws:
SerializationException

getSerializationSignature

java.lang.String getSerializationSignature(java.lang.Class<?> clazz)
Return the serialization signature for the given type.


instantiate

java.lang.Object instantiate(SerializationStreamReader stream,
                             java.lang.String typeSignature)
                             throws SerializationException
Instantiate an object of the given typeName from the serialized stream.

Throws:
SerializationException

serialize

void serialize(SerializationStreamWriter stream,
               java.lang.Object instance,
               java.lang.String typeSignature)
               throws SerializationException
Save an instance into the serialization stream.

Throws:
SerializationException