public class SakaiDateFormatProvider extends DateFormatProvider
DateFormatProvider which provides a
localized DateFormat.| Constructor and Description |
|---|
SakaiDateFormatProvider() |
| Modifier and Type | Method and Description |
|---|---|
Locale[] |
getAvailableLocales() |
protected String |
getDateFormatString(int style,
Locale locale)
Returns a date pattern with the given formatting style for the specified
locale.
|
DateFormat |
getDateInstance(int style,
Locale locale) |
DateFormat |
getDateTimeInstance(int dateStyle,
int timeStyle,
Locale locale) |
protected String |
getTimeFormatString(int style,
Locale locale)
Returns a time pattern with the given formatting style for the specified
locale.
|
DateFormat |
getTimeInstance(int style,
Locale locale) |
isSupportedLocalepublic Locale[] getAvailableLocales()
getAvailableLocales in class LocaleServiceProviderpublic DateFormat getDateInstance(int style, Locale locale) throws IllegalArgumentException, NullPointerException
getDateInstance in class DateFormatProviderIllegalArgumentExceptionNullPointerExceptionpublic DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) throws IllegalArgumentException, NullPointerException
getDateTimeInstance in class DateFormatProviderIllegalArgumentExceptionNullPointerExceptionpublic DateFormat getTimeInstance(int style, Locale locale) throws IllegalArgumentException, NullPointerException
getTimeInstance in class DateFormatProviderIllegalArgumentExceptionNullPointerExceptionprotected String getDateFormatString(int style, Locale locale) throws IllegalArgumentException, NullPointerException
style - the given date formatting style.locale - the desired locale.IllegalArgumentException - if style is invalid, or if
locale isn't available.NullPointerException - if locale is null.protected String getTimeFormatString(int style, Locale locale) throws IllegalArgumentException, NullPointerException
style - the given time formatting style.locale - the desired locale.IllegalArgumentException - if style is invalid, or if
locale isn't available.NullPointerException - if locale is null.Copyright © 2003–2019 Sakai Project. All rights reserved.