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 DatefromISO8601(String timestampString) static DatefromISO8601(String timestampString, boolean timezoneIgnored) static booleanstatic voidsetTimeZoneIgnored(boolean timeZoneIgnored) static Stringstatic 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:
toJSONin interfaceSimpleMapperHelper- Overrides:
toJSONin classAbstractMapper- Throws:
MapperException
-
toJava
- Throws:
MapperException
-
toRFC3339
-
toRFC3339
-
fromISO8601
- Throws:
MapperException
-
fromISO8601
public static Date fromISO8601(String timestampString, boolean timezoneIgnored) throws MapperException - Throws:
MapperException
-