|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.hessian.io.SerializerFactory
public class SerializerFactory
Factory for returning serialization methods.
Field Summary | |
---|---|
private java.util.HashMap |
_cachedDeserializerMap
|
private java.util.HashMap |
_cachedSerializerMap
|
private java.util.HashMap |
_cachedTypeDeserializerMap
|
protected Serializer |
_defaultSerializer
|
private static java.util.HashMap |
_deserializerMap
|
private Deserializer |
_hashMapDeserializer
|
private static java.util.HashMap |
_serializerMap
|
private static java.util.HashMap |
_typeMap
|
Constructor Summary | |
---|---|
SerializerFactory()
|
Method Summary | |
---|---|
private static void |
addBasic(java.lang.Class cl,
java.lang.String typeName,
int type)
|
protected Deserializer |
getDefaultDeserializer(java.lang.Class cl)
Returns the default serializer for a class that isn't matched directly. |
protected Serializer |
getDefaultSerializer(java.lang.Class cl)
Returns the default serializer for a class that isn't matched directly. |
Deserializer |
getDeserializer(java.lang.Class cl)
Returns the deserializer for a class. |
Deserializer |
getDeserializer(java.lang.String type)
Returns a deserializer based on a string type. |
Deserializer |
getObjectDeserializer(java.lang.String type)
Reads the object as a map. |
Serializer |
getSerializer(java.lang.Class cl)
Returns the serializer for a class. |
java.lang.Object |
readList(AbstractHessianInput in,
int length,
java.lang.String type)
Reads the object as a list. |
java.lang.Object |
readMap(AbstractHessianInput in,
java.lang.String type)
Reads the object as a map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.HashMap _serializerMap
private static java.util.HashMap _deserializerMap
private static java.util.HashMap _typeMap
protected Serializer _defaultSerializer
private Deserializer _hashMapDeserializer
private java.util.HashMap _cachedSerializerMap
private java.util.HashMap _cachedDeserializerMap
private java.util.HashMap _cachedTypeDeserializerMap
Constructor Detail |
---|
public SerializerFactory()
Method Detail |
---|
public Serializer getSerializer(java.lang.Class cl) throws HessianProtocolException
cl
- the class of the object that needs to be serialized.
HessianProtocolException
protected Serializer getDefaultSerializer(java.lang.Class cl)
cl
- the class of the object that needs to be serialized.
public Deserializer getDeserializer(java.lang.Class cl) throws HessianProtocolException
cl
- the class of the object that needs to be deserialized.
HessianProtocolException
protected Deserializer getDefaultDeserializer(java.lang.Class cl)
cl
- the class of the object that needs to be serialized.
public java.lang.Object readList(AbstractHessianInput in, int length, java.lang.String type) throws HessianProtocolException, java.io.IOException
HessianProtocolException
java.io.IOException
public java.lang.Object readMap(AbstractHessianInput in, java.lang.String type) throws HessianProtocolException, java.io.IOException
HessianProtocolException
java.io.IOException
public Deserializer getObjectDeserializer(java.lang.String type) throws HessianProtocolException
HessianProtocolException
public Deserializer getDeserializer(java.lang.String type) throws HessianProtocolException
HessianProtocolException
private static void addBasic(java.lang.Class cl, java.lang.String typeName, int type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |