TimeZoneNameProvider class
for the JRE LocaleProviderAdapter.
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final LocaleProviderAdapter. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Locale[] | Returns: An array of all locales for which this locale service provider can provide localized objects or names.Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. |
| public String | Returns: the human-readable name of the given time zone in the given locale, or null if it's not available.a time zone ID string id, boolean if true, return the daylight saving name. daylight, int either style, Locale TimeZone. or
TimeZone.the desired locale locale)Implements abstract java. Returns a name for the given time zone ID that's suitable for presentation to the user in the specified locale. |
| protected String[] | |
| public String | getGenericDisplayName(String id, int style, Locale locale)
Overrides java. Returns a generic name for the given time zone |
| protected String[][] | Returns: an array of time zone names arraysa Locale for time zone names locale)Returns a String[][] as the DateFormatSymbols.getZoneStrings() value for the given locale. |
| public boolean | isSupportedLocale(Locale locale)
Overrides java. Returns |
| langtags | back to summary |
|---|---|
| private final Set<String> langtags | |
| type | back to summary |
|---|---|
| private final LocaleProviderAdapter. | |
| TimeZoneNameProviderImpl | back to summary |
|---|---|
| protected TimeZoneNameProviderImpl(LocaleProviderAdapter. | |
| getAvailableLocales | back to summary |
|---|---|
| public Locale[] getAvailableLocales() Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName(String id, boolean daylight, int style, Locale locale) Implements abstract java. Returns a name for the given time zone ID that's suitable for presentation to the user in the specified locale. The given time zone ID is "GMT" or one of the names defined using "Zone" entries in the "tz database", a public domain time zone database at ftp://elsie.nci.nih.gov/pub/. The data of this database is contained in a file whose name starts with "tzdata", and the specification of the data format is part of the zic.8 man page, which is contained in a file whose name starts with "tzcode".
If
| |
| getDisplayNameArray | back to summary |
|---|---|
| protected String[] getDisplayNameArray(String id, Locale locale) | |
| getGenericDisplayName | back to summary |
|---|---|
| public String getGenericDisplayName(String id, int style, Locale locale) Overrides java. Doc from java. Returns a generic name for the given time zone The default implementation of this method returns
| |
| getZoneStrings | back to summary |
|---|---|
| protected String[][] getZoneStrings(Locale locale) Returns a String[][] as the DateFormatSymbols.getZoneStrings() value for the given locale. | |
| isSupportedLocale | back to summary |
|---|---|
| public boolean isSupportedLocale(Locale locale) Overrides java. Doc from java. Returns The default implementation returns
| |