SerializerFactory (Java EE 5)

Java EE API


javax.xml.rpc.encoding Interface SerializerFactory

All Superinterfaces:
Serializable

public interface SerializerFactory
extends Serializable

Implements: java.io.Serializable

javax.xml.rpc.encoding.SerializerFactory 是 Serializer 的工厂。SerializerFactory 向 TypeMapping 对象注册,该过程是 TypeMappingRegistry 的一部分。
英文文档:

The javax.xml.rpc.encoding.SerializerFactory is a factory of the serializers. A SerializerFactory is registered with a TypeMapping object as part of the TypeMappingRegistry.

Version:
1.0
Author:
Rahul Sharma
See Also:
Serializer

Method Summary
 Serializer
 Iterator
 

Method Detail

public Serializer getSerializerAs(String mechanismType)
返回指定 XML 处理机制类型的 Serializer。
mechanismType XML 处理机制类型 [待确定:有效常量的定义]
ThrowsJAXRPCException: 如果 SerializerFactory 不支持指定的 XML 处理机制
ThrowsIllegalArgumentException: 如果指定了无效的机制类型。
英文文档:

getSerializerAs

Serializer getSerializerAs(String mechanismType)
Returns a Serializer for the specified XML processing mechanism type.

Parameters:
mechanismType - XML processing mechanism type [TBD: definition of valid constants]
Throws:
JAXRPCException - If SerializerFactory does not support the specified XML processing mechanism
IllegalArgumentException - If an invalid mechanism type is specified.

public java.util.Iterator<E> getSupportedMechanismTypes()
返回此 SerializerFactory 支持的所有 XML 处理机制类型所组成的列表。
return 受支持 XML 处理机制类型的唯一标识符列表
英文文档:

getSupportedMechanismTypes

Iterator getSupportedMechanismTypes()
Returns a list of all XML processing mechanism types supported by this SerializerFactory.

Returns:
List of unique identifiers for the supported XML processing mechanism types


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!