Class DateTimeConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

    public class DateTimeConverter
    extends Object
    implements com.thoughtworks.xstream.converters.SingleValueConverter
    • Constructor Detail

      • DateTimeConverter

        public DateTimeConverter()
      • DateTimeConverter

        public DateTimeConverter​(boolean useMillis)
    • Method Detail

      • canConvert

        public boolean canConvert​(Class type)
        Specified by:
        canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
      • fromString

        public Object fromString​(String s)
        Specified by:
        fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
      • toString

        public String toString​(Object datetime)
        Specified by:
        toString in interface com.thoughtworks.xstream.converters.SingleValueConverter