public class DefaultFormatFactory extends Object implements FormatFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_FACTORY_INSTANCE_ERROR |
static String |
EXCEPTION_MESSAGE_KEY_FACTORY_LOADING_ERROR |
static String |
STANDARD_DATE_FORMAT_DEFAULT
Used in the date pattern to specify the default style.
|
static String |
STANDARD_DATE_FORMAT_FULL
Used in the date pattern to specify the full style.
|
static String |
STANDARD_DATE_FORMAT_HIDE
Used in the date pattern to specify that the date or time should not be included.
|
static String |
STANDARD_DATE_FORMAT_LONG
Used in the date pattern to specify the long style.
|
static String |
STANDARD_DATE_FORMAT_MEDIUM
Used in the date pattern to specify the medium style.
|
static String |
STANDARD_DATE_FORMAT_SEPARATOR
Used in the date format pattern to separate the date and time styles.
|
static String |
STANDARD_DATE_FORMAT_SHORT
Used in the date pattern to specify the short style.
|
static String |
STANDARD_NUMBER_FORMAT_DURATION
Number pattern to show integer value as duration expressed in hours:minutes:seconds.
|
| Constructor and Description |
|---|
DefaultFormatFactory() |
| Modifier and Type | Method and Description |
|---|---|
DateFormat |
createDateFormat(String pattern,
Locale locale,
TimeZone tz) |
static FormatFactory |
createFormatFactory(String formatFactoryClassName) |
NumberFormat |
createNumberFormat(String pattern,
Locale locale) |
protected static DateFormat |
getDateFormat(int[] dateStyle,
int[] timeStyle,
Locale locale) |
protected static int[] |
getDateStyle(String pattern) |
public static final String EXCEPTION_MESSAGE_KEY_FACTORY_INSTANCE_ERROR
public static final String EXCEPTION_MESSAGE_KEY_FACTORY_LOADING_ERROR
public static final String STANDARD_DATE_FORMAT_DEFAULT
DateFormat.DEFAULT,
Constant Field Valuespublic static final String STANDARD_DATE_FORMAT_SHORT
DateFormat.SHORT,
Constant Field Valuespublic static final String STANDARD_DATE_FORMAT_MEDIUM
DateFormat.MEDIUM,
Constant Field Valuespublic static final String STANDARD_DATE_FORMAT_LONG
DateFormat.LONG,
Constant Field Valuespublic static final String STANDARD_DATE_FORMAT_FULL
DateFormat.FULL,
Constant Field Valuespublic static final String STANDARD_DATE_FORMAT_HIDE
public static final String STANDARD_DATE_FORMAT_SEPARATOR
public static final String STANDARD_NUMBER_FORMAT_DURATION
public DateFormat createDateFormat(String pattern, Locale locale, TimeZone tz)
createDateFormat in interface FormatFactoryprotected static int[] getDateStyle(String pattern)
protected static DateFormat getDateFormat(int[] dateStyle, int[] timeStyle, Locale locale)
public NumberFormat createNumberFormat(String pattern, Locale locale)
createNumberFormat in interface FormatFactorypublic static FormatFactory createFormatFactory(String formatFactoryClassName)
Copyright © 2017. All rights reserved.