java.lang.Object | ||
↳ | com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter | |
↳ | com.thoughtworks.xstream.converters.basic.DateConverter |
Converts a java.util.Date to a String as a date format, retaining precision down to milliseconds.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a DateConverter with standard formats and lenient set off.
| |||||||||||
Construct a DateConverter with standard formats.
| |||||||||||
Construct a DateConverter with lenient set off.
| |||||||||||
Construct a DateConverter.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines whether the converter can marshall a particular type.
| |||||||||||
Unmarshals an Object from its single value representation.
| |||||||||||
Marshals an Object into a single value representation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.thoughtworks.xstream.converters.ConverterMatcher
| |||||||||||
From interface
com.thoughtworks.xstream.converters.SingleValueConverter
|
Construct a DateConverter with standard formats and lenient set off.
Construct a DateConverter with standard formats.
lenient | the lenient setting of setLenient(boolean) |
---|
Construct a DateConverter with lenient set off.
defaultFormat | the default format |
---|---|
acceptableFormats | fallback formats |
Construct a DateConverter.
defaultFormat | the default format |
---|---|
acceptableFormats | fallback formats |
lenient | the lenient setting of setLenient(boolean) |
Determines whether the converter can marshall a particular type.
type | the Class representing the object type to be converted |
---|
Unmarshals an Object from its single value representation.
str | the String with the single value of the Object |
---|
Marshals an Object into a single value representation.
obj | the Object to be converted |
---|
null