Ejemplo n.º 1
0
 public void writeInstance(XmlSerializer writer, Object obj) throws IOException {
   writer.text(IsoDate.dateToString((Date) obj, IsoDate.DATE_TIME));
 }
Ejemplo n.º 2
0
 public Object readInstance(
     XmlPullParser parser, String namespace, String name, PropertyInfo expected)
     throws IOException, XmlPullParserException {
   return IsoDate.stringToDate(parser.nextText(), IsoDate.DATE_TIME);
 }