Package org.apache.xmlrpc.serializer
Class DateSerializer
- java.lang.Object
-
- org.apache.xmlrpc.serializer.TypeSerializerImpl
-
- org.apache.xmlrpc.serializer.DateSerializer
-
- All Implemented Interfaces:
TypeSerializer
public class DateSerializer extends TypeSerializerImpl
ATypeSerializer
for date values.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DATE_TAG
Tag name of a date value.private java.text.Format
format
-
Fields inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
VALUE_TAG, ZERO_ATTRIBUTES
-
-
Constructor Summary
Constructors Constructor Description DateSerializer(java.text.Format pFormat)
Creates a new instance with the given formatter.
-
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
.-
Methods inherited from class org.apache.xmlrpc.serializer.TypeSerializerImpl
write, write, write
-
-
-
-
Field Detail
-
DATE_TAG
public static final java.lang.String DATE_TAG
Tag name of a date value.- See Also:
- Constant Field Values
-
format
private final java.text.Format format
-
-
Method Detail
-
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.
-
-