Package org.jivesoftware.util
Class FastDateFormat
java.lang.Object
org.jivesoftware.util.FastDateFormat
Deprecated, for removal: This API element is subject to removal in a future version.
Similar to 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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectDeprecated, for removal: This API element is subject to removal in a future version.Style patternstatic final ObjectDeprecated, for removal: This API element is subject to removal in a future version.Style patternstatic final ObjectDeprecated, for removal: This API element is subject to removal in a future version.Style patternstatic final ObjectDeprecated, for removal: This API element is subject to removal in a future version.Style pattern -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.format(Calendar calendar, StringBuffer buf) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.format(Date date, StringBuffer buf) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetDateInstance(Object style, TimeZone timeZone, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetDateTimeInstance(Object dateStyle, Object timeStyle, TimeZone timeZone, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatDeprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetInstance(String pattern) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetInstance(String pattern, DateFormatSymbols symbols) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetInstance(String pattern, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetInstance(String pattern, TimeZone timeZone) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetInstance(String pattern, TimeZone timeZone, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetInstance(String pattern, TimeZone timeZone, Locale locale, DateFormatSymbols symbols) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.Returns an estimate for the maximum length date that this date formatter will produce.Deprecated, for removal: This API element is subject to removal in a future version.static FastDateFormatgetTimeInstance(Object style, TimeZone timeZone, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the time zone used by this formatter, or null if time zone of formatted dates is used instead.
-
Field Details
-
FULL
Deprecated, for removal: This API element is subject to removal in a future version.Style pattern -
LONG
Deprecated, for removal: This API element is subject to removal in a future version.Style pattern -
MEDIUM
Deprecated, for removal: This API element is subject to removal in a future version.Style pattern -
SHORT
Deprecated, for removal: This API element is subject to removal in a future version.Style pattern
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version. -
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
pattern-SimpleDateFormatcompatible pattern- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getInstance
public static FastDateFormat getInstance(String pattern, TimeZone timeZone) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
pattern-SimpleDateFormatcompatible patterntimeZone- optional time zone, overrides time zone of formatted date- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getInstance
public static FastDateFormat getInstance(String pattern, Locale locale) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
pattern-SimpleDateFormatcompatible patternlocale- optional locale, overrides system locale- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getInstance
public static FastDateFormat getInstance(String pattern, DateFormatSymbols symbols) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
pattern-SimpleDateFormatcompatible patternsymbols- optional date format symbols, overrides symbols for system locale- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getInstance
public static FastDateFormat getInstance(String pattern, TimeZone timeZone, Locale locale) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
pattern-SimpleDateFormatcompatible patterntimeZone- optional time zone, overrides time zone of formatted datelocale- optional locale, overrides system locale- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getInstance
public static FastDateFormat getInstance(String pattern, TimeZone timeZone, Locale locale, DateFormatSymbols symbols) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
pattern-SimpleDateFormatcompatible patterntimeZone- optional time zone, overrides time zone of formatted datelocale- optional locale, overrides system localesymbols- optional date format symbols, overrides symbols for provided locale- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getDateInstance
public static FastDateFormat getDateInstance(Object style, TimeZone timeZone, Locale locale) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
style- date style: FULL, LONG, MEDIUM, or SHORTtimeZone- optional time zone, overrides time zone of formatted datelocale- optional locale, overrides system locale- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getTimeInstance
public static FastDateFormat getTimeInstance(Object style, TimeZone timeZone, Locale locale) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
style- time style: FULL, LONG, MEDIUM, or SHORTtimeZone- optional time zone, overrides time zone of formatted datelocale- optional locale, overrides system locale- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
getDateTimeInstance
public static FastDateFormat getDateTimeInstance(Object dateStyle, Object timeStyle, TimeZone timeZone, Locale locale) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
dateStyle- date style: FULL, LONG, MEDIUM, or SHORTtimeStyle- time style: FULL, LONG, MEDIUM, or SHORTtimeZone- optional time zone, overrides time zone of formatted datelocale- optional locale, overrides system locale- Returns:
- the fast date format
- Throws:
IllegalArgumentException
-
format
Deprecated, for removal: This API element is subject to removal in a future version. -
format
Deprecated, for removal: This API element is subject to removal in a future version. -
format
Deprecated, for removal: This API element is subject to removal in a future version. -
format
Deprecated, for removal: This API element is subject to removal in a future version. -
getPattern
Deprecated, for removal: This API element is subject to removal in a future version. -
getTimeZone
Deprecated, for removal: This API element is subject to removal in a future version.Returns the time zone used by this formatter, or null if time zone of formatted dates is used instead.- Returns:
- the time zone
-
getLocale
Deprecated, for removal: This API element is subject to removal in a future version. -
getMaxLengthEstimate
public int getMaxLengthEstimate()Deprecated, for removal: This API element is subject to removal in a future version.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.- Returns:
- an estimate of the maximum length
-
DateTimeFormatter