|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JSONDateHandler
Interface to allow users of Sentinel bean objects to supply an implementation that can serialize and de-serialize date representations.
It would be simplest to use java.text.SimpleDateFormat, but that class is not available under GWT, one of the the primary targets for the beans.
Instances implementing this class must be thread-safe.
Field Summary | |
---|---|
static String |
ISO_DATETIME_FORMAT
The format (in SimpleDateFormat terms) to and from which dates are serialized. |
Method Summary | |
---|---|
String |
format(Date date)
Serialize a date to the format specified by ISO_DATETIME_FORMAT . |
Date |
parse(String dateString)
Parse a string that should be serialized date the format specified by ISO_DATETIME_FORMAT . |
Field Detail |
---|
static final String ISO_DATETIME_FORMAT
Method Detail |
---|
Date parse(String dateString) throws ParseException
ISO_DATETIME_FORMAT
.
dateString
- The input.
ParseException
- If the input is not in the correct format.ISO_DATETIME_FORMAT
String format(Date date)
ISO_DATETIME_FORMAT
.
date
- The input.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |