Package org.apache.xmlrpc.serializer
Class MapSerializer
java.lang.Object
org.apache.xmlrpc.serializer.TypeSerializerImpl
org.apache.xmlrpc.serializer.MapSerializer
- All Implemented Interfaces:
TypeSerializer
A
TypeSerializer for maps.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XmlRpcStreamConfigstatic final StringTag name of a maps member tag.static final StringTag name of a maps members name tag.static final StringTag name of a maps struct tag.private final TypeFactoryFields inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
VALUE_TAG, ZERO_ATTRIBUTES -
Constructor Summary
ConstructorsConstructorDescriptionMapSerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(ContentHandler pHandler, Object pObject) Writes the objectpObjectto the SAX handlerpHandler.protected voidwriteData(ContentHandler pHandler, Object pData) protected voidwriteEntry(ContentHandler pHandler, Object pKey, Object pValue) private voidwriteValue(ContentHandler pHandler, Object pValue) Methods inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
write, write, write
-
Field Details
-
STRUCT_TAG
Tag name of a maps struct tag.- See Also:
-
MEMBER_TAG
Tag name of a maps member tag.- See Also:
-
NAME_TAG
Tag name of a maps members name tag.- See Also:
-
config
-
typeFactory
-
-
Constructor Details
-
MapSerializer
Creates a new instance.- Parameters:
pTypeFactory- The factory being used for creating serializers.pConfig- The configuration being used for creating serializers.
-
-
Method Details
-
writeEntry
- Throws:
SAXException
-
writeValue
- Throws:
SAXException
-
writeData
- Throws:
SAXException
-
write
Description copied from interface:TypeSerializerWrites the objectpObjectto the SAX handlerpHandler.- Parameters:
pHandler- The destination handler.pObject- The object being written.- Throws:
SAXException- Writing the object failed.
-