Package org.apache.xmlrpc.serializer
Class MapSerializer
- java.lang.Object
-
- org.apache.xmlrpc.serializer.TypeSerializerImpl
-
- org.apache.xmlrpc.serializer.MapSerializer
-
- All Implemented Interfaces:
TypeSerializer
public class MapSerializer extends TypeSerializerImpl
ATypeSerializer
for maps.
-
-
Field Summary
Fields Modifier and Type Field Description private XmlRpcStreamConfig
config
static java.lang.String
MEMBER_TAG
Tag name of a maps member tag.static java.lang.String
NAME_TAG
Tag name of a maps members name tag.static java.lang.String
STRUCT_TAG
Tag name of a maps struct tag.private TypeFactory
typeFactory
-
Fields inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
VALUE_TAG, ZERO_ATTRIBUTES
-
-
Constructor Summary
Constructors Constructor Description MapSerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject)
Writes the objectpObject
to the SAX handlerpHandler
.protected void
writeData(org.xml.sax.ContentHandler pHandler, java.lang.Object pData)
protected void
writeEntry(org.xml.sax.ContentHandler pHandler, java.lang.Object pKey, java.lang.Object pValue)
private void
writeValue(org.xml.sax.ContentHandler pHandler, java.lang.Object pValue)
-
Methods inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
write, write, write
-
-
-
-
Field Detail
-
STRUCT_TAG
public static final java.lang.String STRUCT_TAG
Tag name of a maps struct tag.- See Also:
- Constant Field Values
-
MEMBER_TAG
public static final java.lang.String MEMBER_TAG
Tag name of a maps member tag.- See Also:
- Constant Field Values
-
NAME_TAG
public static final java.lang.String NAME_TAG
Tag name of a maps members name tag.- See Also:
- Constant Field Values
-
config
private final XmlRpcStreamConfig config
-
typeFactory
private final TypeFactory typeFactory
-
-
Constructor Detail
-
MapSerializer
public MapSerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)
Creates a new instance.- Parameters:
pTypeFactory
- The factory being used for creating serializers.pConfig
- The configuration being used for creating serializers.
-
-
Method Detail
-
writeEntry
protected void writeEntry(org.xml.sax.ContentHandler pHandler, java.lang.Object pKey, java.lang.Object pValue) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
writeValue
private void writeValue(org.xml.sax.ContentHandler pHandler, java.lang.Object pValue) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
writeData
protected void writeData(org.xml.sax.ContentHandler pHandler, java.lang.Object pData) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
write
public void write(org.xml.sax.ContentHandler pHandler, java.lang.Object pObject) throws org.xml.sax.SAXException
Description copied from interface:TypeSerializer
Writes the objectpObject
to the SAX handlerpHandler
.- Parameters:
pHandler
- The destination handler.pObject
- The object being written.- Throws:
org.xml.sax.SAXException
- Writing the object failed.
-
-