Package org.apache.xmlrpc.serializer
Class ObjectArraySerializer
- java.lang.Object
-
- org.apache.xmlrpc.serializer.TypeSerializerImpl
-
- org.apache.xmlrpc.serializer.ObjectArraySerializer
-
- All Implemented Interfaces:
TypeSerializer
- Direct Known Subclasses:
ListSerializer
public class ObjectArraySerializer extends TypeSerializerImpl
ATypeSerializerfor object arrays.
-
-
Field Summary
Fields Modifier and Type Field Description static StringARRAY_TAGTag name of an array value.static StringDATA_TAGTag name of an arrays data.-
Fields inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
VALUE_TAG, ZERO_ATTRIBUTES
-
-
Constructor Summary
Constructors Constructor Description ObjectArraySerializer(TypeFactory pTypeFactory, XmlRpcStreamConfig pConfig)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(ContentHandler pHandler, Object pObject)Writes the objectpObjectto the SAX handlerpHandler.protected voidwriteData(ContentHandler pHandler, Object pObject)protected voidwriteObject(ContentHandler pHandler, Object pObject)-
Methods inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
write, write, write
-
-
-
-
Field Detail
-
ARRAY_TAG
public static final String ARRAY_TAG
Tag name of an array value.- See Also:
- Constant Field Values
-
DATA_TAG
public static final String DATA_TAG
Tag name of an arrays data.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectArraySerializer
public ObjectArraySerializer(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
-
writeObject
protected void writeObject(ContentHandler pHandler, Object pObject) throws SAXException
- Throws:
SAXException
-
writeData
protected void writeData(ContentHandler pHandler, Object pObject) throws SAXException
- Throws:
SAXException
-
write
public void write(ContentHandler pHandler, Object pObject) throws SAXException
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.
-
-