Name

DeserializerFactory

Synopsis

public interface DeserializerFactory extends java.io.Serializable {
// Public Instance Methods
    public abstract Deserializer getDeserializerAs(String mechanismType);
    public abstract Iterator getSupportedMechanismTypes(  ); 
}

A DeserializerFactory returns Deserializers that can convert from an XML type to a corresponding Java object or primitive. A DeserializerFactory for a given (Java type, XML type) pairing is registered with, and can be obtained from, a TypeMapping object. Once you have a DeserializerFactory, you can obtain a Deserializer instance by calling its getDeserializerAs( ) method, which requires an argument that specifies a serialization mechanism type. The mechanism type describes the style of the underlying XML processing model with which the serializer works, examples of which might be a DOM model or a character stream containing XML to be decoded. A factory might be able to supply deserializers for more than one mechanism type. The JAX-RPC specification does not define standard mechanism types, but the reference implementation supports a single, private type identified by the URI http://java.sun.com/jax-rpc-ri/1.0/streaming/. The URIs for the mechanism types for which the factory can return a suitable Deserializer can be obtained by calling the getSupportedMechanismTypes( ) method.

Passed To

TypeMapping.register( )

Returned By

TypeMapping.getDeserializer( )

Get Java Web Services in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.