Created on 18/09/2005
The default implementation of a TimeZoneRegistry. This implementation will search the classpath for
applicable VTimeZone definitions used to back the provided TimeZone instances.
| Modifier and Type | Field and Description |
|---|---|
| private static final Properties | |
| private static final String | |
| private static final Map | |
| private final boolean | |
| private final TimeZoneLoader | |
| private final Map | |
| private static final Pattern | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TimeZoneRegistryImpl(final String
a prefix prepended to classpath resource lookups for default timezones resourcePrefix)Creates a new instance using the specified resource prefix. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final TimeZone | getTimeZone(final String
a timezone identifier id)Implements net. Returns a timezone with the specified identifier, potentially performing a network call to update the definition. |
| public String | |
| public ZoneId | |
| public Map | |
| public final void | register(final TimeZone
a timezone to be registered for use with iCalendar
objects timezone)Implements net. Registers a new timezone for use with iCalendar objects. |
| public final void | register(final TimeZone
a timezone to be registered for use with iCalendar
objects timezone, boolean attempt to update the definition from any specified TZURL
property if true update)Implements net. Registers a new timezone for use with iCalendar objects. |
| ALIASES | back to summary |
|---|---|
| private static final Properties ALIASES | |
| DEFAULT_RESOURCE_PREFIX | back to summary |
|---|---|
| private static final String DEFAULT_RESOURCE_PREFIX | |
| DEFAULT_TIMEZONES | back to summary |
|---|---|
| private static final Map<String, TimeZone> DEFAULT_TIMEZONES | |
| lenientTzResolution | back to summary |
|---|---|
| private final boolean lenientTzResolution | |
| timeZoneLoader | back to summary |
|---|---|
| private final TimeZoneLoader timeZoneLoader | |
| timezones | back to summary |
|---|---|
| private final Map<String, TimeZone> timezones | |
| TZ_ID_SUFFIX | back to summary |
|---|---|
| private static final Pattern TZ_ID_SUFFIX | |
| zoneIds | back to summary |
|---|---|
| private final Map<String, String> zoneIds | |
| zoneRules | back to summary |
|---|---|
| private final Map<String, ZoneRules> zoneRules | |
| TimeZoneRegistryImpl | back to summary |
|---|---|
| public TimeZoneRegistryImpl() Default constructor. | |
| TimeZoneRegistryImpl | back to summary |
|---|---|
| public TimeZoneRegistryImpl(final String resourcePrefix) Creates a new instance using the specified resource prefix.
| |
| TimeZoneRegistryImpl | back to summary |
|---|---|
| public TimeZoneRegistryImpl(final String resourcePrefix, boolean lenientTzResolution) | |
| clear | back to summary |
|---|---|
| public final void clear() Implements net. Doc from net. Clears all registered timezones.
| |
| getTimeZone | back to summary |
|---|---|
| public final TimeZone getTimeZone(final String id) Implements net. Doc from net. Returns a timezone with the specified identifier, potentially performing a network call to update the definition. Timezone definitions are cached in memory, but in case of a cache miss, a request to tzurl.org is done in a synchronized block. | |
| getTzId | back to summary |
|---|---|
| public String getTzId(String zoneId) Implements net.
| |
| getZoneId | back to summary |
|---|---|
| public ZoneId getZoneId(String tzId) Implements net.
| |
| getZoneRules | back to summary |
|---|---|
| public Map Implements net.
| |
| register | back to summary |
|---|---|
| public final void register(final TimeZone timezone) Implements net. Doc from net. Registers a new timezone for use with iCalendar objects. If a timezone with the same identifier is already registered this timezone will take precedence. | |
| register | back to summary |
|---|---|
| public final void register(final TimeZone timezone, boolean update) Implements net. Doc from net. Registers a new timezone for use with iCalendar objects. If a timezone with the same identifier is already registered this timezone will take precedence. | |