TimeZoneRegistrypublic class TimeZoneRegistryImpl extends Object implements TimeZoneRegistry
TimeZoneRegistry. This implementation will search the classpath for
applicable VTimeZone definitions used to back the provided TimeZone instances.ZONE_ALIASES, ZONE_IDS| Constructor | Description |
|---|---|
TimeZoneRegistryImpl() |
Default constructor.
|
TimeZoneRegistryImpl(String resourcePrefix) |
Creates a new instance using the specified resource prefix.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Clears all registered timezones.
|
TimeZone |
getTimeZone(String id) |
Returns a timezone with the specified identifier.
|
String |
getTzId(String zoneId) |
|
ZoneId |
getZoneId(String tzId) |
|
Map<String,ZoneRules> |
getZoneRules() |
|
void |
register(TimeZone timezone) |
Registers a new timezone for use with iCalendar objects.
|
void |
register(TimeZone timezone,
boolean update) |
Registers a new timezone for use with iCalendar objects.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGlobalZoneIdpublic TimeZoneRegistryImpl()
public TimeZoneRegistryImpl(String resourcePrefix)
resourcePrefix - a prefix prepended to classpath resource lookups for default timezonespublic final void register(TimeZone timezone)
register in interface TimeZoneRegistrytimezone - a timezone to be registered for use with iCalendar
objectspublic final void register(TimeZone timezone, boolean update)
register in interface TimeZoneRegistrytimezone - a timezone to be registered for use with iCalendar
objectsupdate - attempt to update the definition from any specified TZURL
property if truepublic final void clear()
clear in interface TimeZoneRegistrypublic final TimeZone getTimeZone(String id)
getTimeZone in interface TimeZoneRegistryid - a timezone identifierpublic Map<String,ZoneRules> getZoneRules()
getZoneRules in interface TimeZoneRegistrypublic ZoneId getZoneId(String tzId)
getZoneId in interface TimeZoneRegistrypublic String getTzId(String zoneId)
getTzId in interface TimeZoneRegistry