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