Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 package org.apache.xmlrpc.serializer;
00020
00021 import org.apache.ws.commons.util.XsDateTimeFormat;
00022 import org.xml.sax.ContentHandler;
00023 import org.xml.sax.SAXException;
00024
00025
00028 public class CalendarSerializer extends TypeSerializerImpl {
00029 private static final XsDateTimeFormat format = new XsDateTimeFormat();
00030
00033 public static final String CALENDAR_TAG = "dateTime";
00034
00035 private static final String EX_CALENDAR_TAG = "ex:" + CALENDAR_TAG;
00036
00039 public static final String DATE_TAG = "dateTime.iso8601";
00040
00041 public void write(ContentHandler pHandler, Object pObject) throws SAXException {
00042 write(pHandler, CALENDAR_TAG, EX_CALENDAR_TAG, format.format(pObject));
00043 }
00044 }