Package com.appslandia.common.formatters
Class OffsetDateTimeFormatter
- java.lang.Object
-
- com.appslandia.common.formatters.Java8DateFormatter<java.time.OffsetDateTime>
-
- com.appslandia.common.formatters.OffsetDateTimeFormatter
-
- All Implemented Interfaces:
Formatter
public class OffsetDateTimeFormatter extends Java8DateFormatter<java.time.OffsetDateTime>
- Author:
- Loc Ha
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERROR_MSG_KEY-
Fields inherited from interface com.appslandia.common.formatters.Formatter
BIGDECIMAL, BIGDECIMAL_L, BOOLEAN, BYTE, DATE, DATE_L, DB_TAGS, DOUBLE, DOUBLE_L, FLOAT, FLOAT_L, INTEGER, INTEGER_L, KEYWORDS, LOCAL_DATE, LOCAL_DATE_L, LOCAL_DATETIME, LOCAL_DATETIME_L, LOCAL_DATETIME_M, LOCAL_DATETIME_ML, LOCAL_TIME, LOCAL_TIME_M, LONG, LONG_L, OFFSET_DATETIME, OFFSET_DATETIME_L, OFFSET_DATETIME_M, OFFSET_DATETIME_ML, OFFSET_TIME, OFFSET_TIME_M, SHORT, SHORT_L, STRING, STRING_ELC, STRING_EUC, TAG, TAGS, TEXT, TEXT_ML, TIME, TIME_M, TIMESTAMP, TIMESTAMP_L, TIMESTAMP_M, TIMESTAMP_ML, YEAR_MONTH, YEAR_MONTH_L
-
-
Constructor Summary
Constructors Constructor Description OffsetDateTimeFormatter()OffsetDateTimeFormatter(boolean localized)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getArgType()java.lang.StringgetErrorMsgKey()protected java.lang.StringgetIsoPattern()protected java.lang.StringgetLocalizedPattern(FormatProvider formatProvider)protected java.time.OffsetDateTimeparse(java.lang.String str, java.time.format.DateTimeFormatter formatter)-
Methods inherited from class com.appslandia.common.formatters.Java8DateFormatter
format, getFormatter, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.appslandia.common.formatters.Formatter
toNumberOverflowError, toParsingError, toParsingError
-
-
-
-
Method Detail
-
getErrorMsgKey
public java.lang.String getErrorMsgKey()
-
getArgType
public java.lang.Class<?> getArgType()
-
getLocalizedPattern
protected java.lang.String getLocalizedPattern(FormatProvider formatProvider)
- Specified by:
getLocalizedPatternin classJava8DateFormatter<java.time.OffsetDateTime>
-
getIsoPattern
protected java.lang.String getIsoPattern()
- Specified by:
getIsoPatternin classJava8DateFormatter<java.time.OffsetDateTime>
-
parse
protected java.time.OffsetDateTime parse(java.lang.String str, java.time.format.DateTimeFormatter formatter) throws java.time.format.DateTimeParseException- Specified by:
parsein classJava8DateFormatter<java.time.OffsetDateTime>- Throws:
java.time.format.DateTimeParseException
-
-