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 XmlRpcStreamConfig
static final String
Tag name of a maps member tag.static final String
Tag name of a maps members name tag.static final String
Tag name of a maps struct tag.private final TypeFactory
Fields 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 TypeMethodDescriptionvoid
write
(ContentHandler pHandler, Object pObject) Writes the objectpObject
to the SAX handlerpHandler
.protected void
writeData
(ContentHandler pHandler, Object pData) protected void
writeEntry
(ContentHandler pHandler, Object pKey, Object pValue) private void
writeValue
(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:TypeSerializer
Writes the objectpObject
to the SAX handlerpHandler
.- Parameters:
pHandler
- The destination handler.pObject
- The object being written.- Throws:
SAXException
- Writing the object failed.
-