public class SecondsDateConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
This was written to fix a bug in Xstream in that it ignored seconds. Although fixed in XStream, we still use it to so we can load old versions of the build.
Constructor and Description |
---|
SecondsDateConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type)
Inform XStream that we're reponsible for converting dates.
|
Object |
fromString(String str) |
String |
toString(Object object) |
public boolean canConvert(Class type)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
canConvert
in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
public Object fromString(String str)
fromString
in interface com.thoughtworks.xstream.converters.SingleValueConverter
fromString
in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.