Date to JSON.
If fromJSON is true in the constructor, the JSON generated will
be of the form {class="java.util.Date",value="1/1/1970 12:00 GMT"}
If fromJSON is false, then only the string value of the date is generated.
| Modifier and Type | Field and Description |
|---|---|
| private final DateCache | |
| private final SimpleDateFormat | |
| private final boolean | |
| private final AutoLock | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public void |
| _dateCache | back to summary |
|---|---|
| private final DateCache _dateCache | |
| _format | back to summary |
|---|---|
| private final SimpleDateFormat _format | |
| _fromJSON | back to summary |
|---|---|
| private final boolean _fromJSON | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| JSONDateConvertor | back to summary |
|---|---|
| public JSONDateConvertor() | |
| JSONDateConvertor | back to summary |
|---|---|
| public JSONDateConvertor(boolean fromJSON) | |
| JSONDateConvertor | back to summary |
|---|---|
| public JSONDateConvertor(String format, TimeZone zone, boolean fromJSON) | |
| JSONDateConvertor | back to summary |
|---|---|
| public JSONDateConvertor(String format, TimeZone zone, boolean fromJSON, Locale locale) | |
| fromJSON | back to summary |
|---|---|
| public Object fromJSON(Map<String, Object> map) Implements org.
| |
| toJSON | back to summary |
|---|---|
| public void toJSON(Object obj, JSON. Implements org.
| |