public class MapSerializer extends TypeSerializerImpl
TypeSerializer
for maps.Modifier and Type | Field and Description |
---|---|
static String |
MEMBER_TAG
Tag name of a maps member tag.
|
static String |
NAME_TAG
Tag name of a maps members name tag.
|
static String |
STRUCT_TAG
Tag name of a maps struct tag.
|
VALUE_TAG, ZERO_ATTRIBUTES
Constructor and Description |
---|
MapSerializer(TypeFactory pTypeFactory,
XmlRpcStreamConfig pConfig)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
write(ContentHandler pHandler,
Object pObject)
Writes the object
pObject to the SAX handler
pHandler . |
protected void |
writeData(ContentHandler pHandler,
Object pData) |
protected void |
writeEntry(ContentHandler pHandler,
Object pKey,
Object pValue) |
write, write, write
public static final String STRUCT_TAG
public static final String MEMBER_TAG
public static final String NAME_TAG
public MapSerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)
pTypeFactory
- The factory being used for creating serializers.pConfig
- The configuration being used for creating serializers.protected void writeEntry(ContentHandler pHandler, Object pKey, Object pValue) throws SAXException
SAXException
protected void writeData(ContentHandler pHandler, Object pData) throws SAXException
SAXException
public void write(ContentHandler pHandler, Object pObject) throws SAXException
TypeSerializer
pObject
to the SAX handler
pHandler
.pHandler
- The destination handler.pObject
- The object being written.SAXException
- Writing the object failed.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.