|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.core.data.DateFormatFactory
public class DateFormatFactory
Manages per-thread storage of locale-specific DateFormat instances. Use this factory to obtain DateFormat instances to address two issues: (1) Reduce cost of on-the-fly construction of DateFormat instances. The factory uses cached instances whenever possible. (2) MT-safety issue related to use of shared DateFormat instances across threads
Constructor Summary | |
---|---|
DateFormatFactory()
|
Method Summary | |
---|---|
static com.ibm.icu.text.DateFormat |
getDateInstance(int dateStyle,
com.ibm.icu.util.ULocale locale)
Gets DateFormat instance allocated to the current thread for the given date style, timestyle and locale. |
static com.ibm.icu.text.DateFormat |
getDateTimeInstance(int dateStyle,
int timeStyle,
com.ibm.icu.util.ULocale locale)
Gets DateFormat instance allocated to the current thread for the given date style, timestyle and locale. |
static com.ibm.icu.text.SimpleDateFormat |
getPatternInstance(org.eclipse.birt.core.data.PatternKey pattern)
Gets DateFormat instance allocated to the current thread for the given pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateFormatFactory()
Method Detail |
---|
public static com.ibm.icu.text.DateFormat getDateTimeInstance(int dateStyle, int timeStyle, com.ibm.icu.util.ULocale locale)
public static com.ibm.icu.text.DateFormat getDateInstance(int dateStyle, com.ibm.icu.util.ULocale locale)
public static com.ibm.icu.text.SimpleDateFormat getPatternInstance(org.eclipse.birt.core.data.PatternKey pattern)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |