Package org.apache.xmlrpc.serializer
Class ExtSerializer
- java.lang.Object
-
- org.apache.xmlrpc.serializer.ExtSerializer
-
- All Implemented Interfaces:
TypeSerializer
- Direct Known Subclasses:
JaxbSerializer
,NodeSerializer
public abstract class ExtSerializer extends Object implements TypeSerializer
Base class for external XML representations, like DOM, or JAXB.
-
-
Constructor Summary
Constructors Constructor Description ExtSerializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getTagName()
Returns the unqualied tag name.protected abstract void
serialize(ContentHandler pHandler, Object pObject)
Performs the actual serialization.void
write(ContentHandler pHandler, Object pObject)
Writes the objectpObject
to the SAX handlerpHandler
.
-
-
-
Method Detail
-
getTagName
protected abstract String getTagName()
Returns the unqualied tag name.
-
serialize
protected abstract void serialize(ContentHandler pHandler, Object pObject) throws SAXException
Performs the actual serialization.- Throws:
SAXException
-
write
public void write(ContentHandler pHandler, Object pObject) throws SAXException
Description copied from interface:TypeSerializer
Writes the objectpObject
to the SAX handlerpHandler
.- Specified by:
write
in interfaceTypeSerializer
- Parameters:
pHandler
- The destination handler.pObject
- The object being written.- Throws:
SAXException
- Writing the object failed.
-
-