Class DateMapper
java.lang.Object
com.sdicons.json.mapper.helper.impl.AbstractMapper
com.sdicons.json.mapper.helper.impl.DateMapper
- All Implemented Interfaces:
Helper
,SimpleMapperHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Date
fromISO8601
(String timestampString) static Date
fromISO8601
(String timestampString, boolean timezoneIgnored) static boolean
static void
setTimeZoneIgnored
(boolean timeZoneIgnored) static String
static String
-
Field Details
-
timeZoneIgnored
private static boolean timeZoneIgnored
-
-
Constructor Details
-
DateMapper
public DateMapper()
-
-
Method Details
-
isTimeZoneIgnored
public static boolean isTimeZoneIgnored() -
setTimeZoneIgnored
public static void setTimeZoneIgnored(boolean timeZoneIgnored) -
getHelpedClass
-
toJSON
- Specified by:
toJSON
in interfaceSimpleMapperHelper
- Overrides:
toJSON
in classAbstractMapper
- Throws:
MapperException
-
toJava
- Throws:
MapperException
-
toRFC3339
-
toRFC3339
-
fromISO8601
- Throws:
MapperException
-
fromISO8601
public static Date fromISO8601(String timestampString, boolean timezoneIgnored) throws MapperException - Throws:
MapperException
-