| Constructor and Description |
|---|
DateFormatConverter() |
DateFormatConverter(DateFormat format) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Date value)
Converts a value of the type returned by
Converter.getValueType() to its
plain text representation. |
Class<Date> |
getValueType()
Gets the value type.
|
Date |
parse(String text)
Converts a value from its plain text representation to a Java object instance
of the type returned by
Converter.getValueType(). |
public DateFormatConverter()
public DateFormatConverter(DateFormat format)
public Class<Date> getValueType()
ConvertergetValueType in interface Converter<Date>public Date parse(String text) throws ConversionException
ConverterConverter.getValueType().parse in interface Converter<Date>text - The textual representation of the value.ConversionException - If the conversion fails.public String format(Date value)
ConverterConverter.getValueType() to its
plain text representation.Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.