| java.lang.Object org.jivesoftware.util.FastDateFormat
FastDateFormat | public class FastDateFormat (Code) | | Similar to
java.text.SimpleDateFormat , but faster and thread-safe.
Only formatting is supported, but all patterns are compatible with
SimpleDateFormat.
Note, this class is from the open source Tea project (http://sourceforge.net/projects/teatrove/).
author: Brian S O'Neill |
Method Summary | |
public String | format(Date date) | public String | format(Calendar calendar) | public StringBuffer | format(Date date, StringBuffer buf) | public StringBuffer | format(Calendar calendar, StringBuffer buf) | public static synchronized FastDateFormat | getDateInstance(Object style, TimeZone timeZone, Locale locale) | public static synchronized FastDateFormat | getDateTimeInstance(Object dateStyle, Object timeStyle, TimeZone timeZone, Locale locale) | public static FastDateFormat | getInstance() | public static FastDateFormat | getInstance(String pattern) | public static FastDateFormat | getInstance(String pattern, TimeZone timeZone) | public static FastDateFormat | getInstance(String pattern, Locale locale) | public static FastDateFormat | getInstance(String pattern, DateFormatSymbols symbols) | public static FastDateFormat | getInstance(String pattern, TimeZone timeZone, Locale locale) | public static synchronized FastDateFormat | getInstance(String pattern, TimeZone timeZone, Locale locale, DateFormatSymbols symbols) | public Locale | getLocale() | public int | getMaxLengthEstimate() Returns an estimate for the maximum length date that this date
formatter will produce. | public String | getPattern() | public static synchronized FastDateFormat | getTimeInstance(Object style, TimeZone timeZone, Locale locale) | public TimeZone | getTimeZone() Returns the time zone used by this formatter, or null if time zone of
formatted dates is used instead. | static synchronized String | getTimeZoneDisplay(TimeZone tz, boolean daylight, int style, Locale locale) |
FULLLONGMEDIUMSHORT | final public static Object FULLLONGMEDIUMSHORT(Code) | | Style pattern
|
getDateInstance | public static synchronized FastDateFormat getDateInstance(Object style, TimeZone timeZone, Locale locale) throws IllegalArgumentException(Code) | | Parameters: style - date style: FULL, LONG, MEDIUM, or SHORT Parameters: timeZone - optional time zone, overrides time zone of formatteddate Parameters: locale - optional locale, overrides system locale |
getDateTimeInstance | public static synchronized FastDateFormat getDateTimeInstance(Object dateStyle, Object timeStyle, TimeZone timeZone, Locale locale) throws IllegalArgumentException(Code) | | Parameters: dateStyle - date style: FULL, LONG, MEDIUM, or SHORT Parameters: timeStyle - time style: FULL, LONG, MEDIUM, or SHORT Parameters: timeZone - optional time zone, overrides time zone of formatteddate Parameters: locale - optional locale, overrides system locale |
getMaxLengthEstimate | public int getMaxLengthEstimate()(Code) | | Returns an estimate for the maximum length date that this date
formatter will produce. The actual formatted length will almost always
be less than or equal to this amount.
|
getTimeInstance | public static synchronized FastDateFormat getTimeInstance(Object style, TimeZone timeZone, Locale locale) throws IllegalArgumentException(Code) | | Parameters: style - time style: FULL, LONG, MEDIUM, or SHORT Parameters: timeZone - optional time zone, overrides time zone of formatteddate Parameters: locale - optional locale, overrides system locale |
getTimeZone | public TimeZone getTimeZone()(Code) | | Returns the time zone used by this formatter, or null if time zone of
formatted dates is used instead.
|
|
|