类 ExtSerializerFactory
- java.lang.Object
-
- com.alibaba.com.caucho.hessian.io.AbstractSerializerFactory
-
- com.alibaba.com.caucho.hessian.io.ExtSerializerFactory
-
public class ExtSerializerFactory extends AbstractSerializerFactory
Factory for returning serialization methods.
-
-
构造器概要
构造器 构造器 说明 ExtSerializerFactory()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addDeserializer(Class cl, Deserializer deserializer)
Adds a deserializer.void
addSerializer(Class cl, Serializer serializer)
Adds a serializer.Deserializer
getDeserializer(Class cl)
Returns the deserializer for a class.Serializer
getSerializer(Class cl)
Returns the serializer for a class.
-
-
-
方法详细资料
-
addSerializer
public void addSerializer(Class cl, Serializer serializer)
Adds a serializer.- 参数:
cl
- the class of the serializerserializer
- the serializer
-
addDeserializer
public void addDeserializer(Class cl, Deserializer deserializer)
Adds a deserializer.- 参数:
cl
- the class of the deserializerdeserializer
- the deserializer
-
getSerializer
public Serializer getSerializer(Class cl) throws HessianProtocolException
Returns the serializer for a class.- 指定者:
getSerializer
在类中AbstractSerializerFactory
- 参数:
cl
- the class of the object that needs to be serialized.- 返回:
- a serializer object for the serialization.
- 抛出:
HessianProtocolException
-
getDeserializer
public Deserializer getDeserializer(Class cl) throws HessianProtocolException
Returns the deserializer for a class.- 指定者:
getDeserializer
在类中AbstractSerializerFactory
- 参数:
cl
- the class of the object that needs to be deserialized.- 返回:
- a deserializer object for the serialization.
- 抛出:
HessianProtocolException
-
-