public static class Utils.DefaultDateJsonDeserializer
extends java.lang.Object
implements com.google.gson.JsonDeserializer<java.util.Date>
JsonDeserializer
to parse a string value to Date.Utils.DATE_FORMAT_ISO8601
Utils.DATE_FORMAT_ACCEPTED_BY_SPRING_MVC
Constants.SAFS_LogConstants.FORMAT_DATE_TIME
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.text.DateFormat> |
dateFormats
The DateFormats used to parse a String to a Date.
|
Constructor and Description |
---|
DefaultDateJsonDeserializer() |
DefaultDateJsonDeserializer(java.util.List<java.text.DateFormat> customFormats) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
java.util.List<java.text.DateFormat> dateFormats
public DefaultDateJsonDeserializer()
public DefaultDateJsonDeserializer(java.util.List<java.text.DateFormat> customFormats)
public java.util.Date deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<java.util.Date>
com.google.gson.JsonParseException
Copyright © SAS Institute. All Rights Reserved.