@DecodeType(value=java.util.Calendar.class) public class CalendarDecoder extends LocaleAwareDateDecoder implements DataDecoder
Calendar
data decoder.
Decodes the supplied string into a Calendar
value
based on the supplied "format
" parameter.
This decoder is synchronized on its underlying SimpleDateFormat
instance.LocaleAwareDateDecoder}
,
Serialized FormDataDecoder.Factory
decoder, DEFAULT_DATE_FORMAT, format, FORMAT, LOCALE_COUNTRY_CODE, LOCALE_LANGUAGE_CODE, VERIFY_LOCALE
LOCALE
Constructor and Description |
---|
CalendarDecoder() |
Modifier and Type | Method and Description |
---|---|
Object |
decode(String data)
Decode the supplied String data into a new Object data instance.
|
setConfiguration
getConfiguration, getLocale, getLocale, isLocalInstalled
public Object decode(String data) throws DataDecodeException
DataDecoder
decode
in interface DataDecoder
data
- Data to be decoded.DataDecodeException
- Error decoding data.Copyright © 2020. All rights reserved.