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

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

Introduction

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

Prototype

Object instantiate(SerializationStreamReader stream, String typeSignature) throws SerializationException;

Source Link

Document

Instantiate an object of the given typeName from the serialized stream.

Usage

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

License:Open Source License

@Override
public Object instantiate(SerializationStreamReader stream, String typeSignature)
        throws SerializationException {
    for (Serializer serializer : this.serializers) {
        try {/*from   www.j a  v  a  2 s .c o  m*/
            Object o = serializer.instantiate(stream, typeSignature);
            if (o != null) {
                return o;
            }
        } catch (SerializationException e) {
            continue;
        }
    }
    throw new SerializationException(typeSignature);
}