Example usage for com.google.gwt.user.client.rpc.impl Serializer serialize

List of usage examples for com.google.gwt.user.client.rpc.impl Serializer serialize

Introduction

In this page you can find the example usage for com.google.gwt.user.client.rpc.impl Serializer serialize.

Prototype

void serialize(SerializationStreamWriter stream, Object instance, String typeSignature)
        throws SerializationException;

Source Link

Document

Save an instance into the serialization stream.

Usage

From source file:fr.putnami.pwt.core.service.client.CommandServiceCompositeSerializer.java

License:Open Source License

@Override
public void serialize(SerializationStreamWriter stream, Object instance, String typeSignature)
        throws SerializationException {
    for (Serializer serializer : this.serializers) {
        try {/*from   w w  w . j  av  a 2 s.  co m*/
            serializer.serialize(stream, instance, typeSignature);
            return;
        } catch (SerializationException e) {
            continue;
        }
    }
    throw new SerializationException(typeSignature);
}