org.milyn.javabean.decoders
Class CalendarDecoder
java.lang.Object
org.milyn.javabean.decoders.LocaleAwareDecoder
org.milyn.javabean.decoders.LocaleAwareDateDecoder
org.milyn.javabean.decoders.CalendarDecoder
- All Implemented Interfaces:
- Serializable, Configurable, DataDecoder
@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.
- Author:
- tom.fennelly@gmail.com, Pavel Kadlec, daniel.bevenius@gmail.com
- See Also:
LocaleAwareDateDecoder},
Serialized Form
|
Method Summary |
Object |
decode(String data)
Decode the supplied String data into a new Object data instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalendarDecoder
public CalendarDecoder()
decode
public Object decode(String data)
throws DataDecodeException
- Description copied from interface:
DataDecoder
- Decode the supplied String data into a new Object data instance.
- Specified by:
decode in interface DataDecoder
- Parameters:
data - Data to be decoded.
- Returns:
- Decoded data Object.
- Throws:
DataDecodeException - Error decoding data.
Copyright © 2018. All rights reserved.