Пример #1
0
 public void writeInstance(XmlSerializer writer, Object obj) throws IOException {
   writer.text(IsoDate.dateToString((Date) obj, IsoDate.DATE_TIME));
 }
 @Override
 public void writeInstance(XmlSerializer xmlSerializer, Object o) throws IOException {
   xmlSerializer.text(IsoDate.dateToString((Date) o, IsoDate.DATE_TIME));
 }
Пример #3
0
 public Object readInstance(
     XmlPullParser parser, String namespace, String name, PropertyInfo expected)
     throws IOException, XmlPullParserException {
   return IsoDate.stringToDate(parser.nextText(), IsoDate.DATE_TIME);
 }
 @Override
 public Object readInstance(
     XmlPullParser xmlPullParser, String s, String s1, PropertyInfo propertyInfo)
     throws IOException, XmlPullParserException {
   return IsoDate.stringToDate(xmlPullParser.nextText(), IsoDate.DATE_TIME);
 }