public abstract class DateFormatter extends Object implements Formatter
BIGDECIMAL, BIGDECIMAL_LZ, BOOLEAN, BYTE, DATE, DATE_LZ, DOUBLE, DOUBLE_LZ, EN_LOWER, EN_UPPER, FLOAT, FLOAT_LZ, INTEGER, INTEGER_LZ, INVARIANT_LOWER, INVARIANT_UPPER, LOCAL_DATE, LOCAL_DATE_LZ, LOCAL_DATETIME, LOCAL_DATETIME_LZ, LOCAL_DATETIME_MI, LOCAL_DATETIME_MILZ, LOCAL_TIME, LOCAL_TIME_MI, LONG, LONG_LZ, LOWER, OFFSET_DATETIME, OFFSET_DATETIME_LZ, OFFSET_DATETIME_MI, OFFSET_DATETIME_MILZ, OFFSET_TIME, OFFSET_TIME_MI, SHORT, SHORT_LZ, SINGLE_LINE, STRING, TIME, TIME_MI, TIMESTAMP, TIMESTAMP_LZ, TIMESTAMP_MI, TIMESTAMP_MILZ, TRIM_TO_EMPTY, UPPER| Constructor and Description |
|---|
DateFormatter(boolean localized) |
| Modifier and Type | Method and Description |
|---|---|
protected Date |
doParse(String str,
FormatProvider formatProvider) |
String |
format(Object obj,
FormatProvider formatProvider) |
protected abstract String |
getIsoPattern() |
protected abstract String |
getLocalizedPattern(FormatProvider formatProvider) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgType, getErrorMsgKey, parseprotected abstract String getLocalizedPattern(FormatProvider formatProvider)
protected abstract String getIsoPattern()
public String format(Object obj, FormatProvider formatProvider)
protected Date doParse(String str, FormatProvider formatProvider) throws FormatterException
FormatterExceptionCopyright © 2019. All rights reserved.