public class TimeZoneRegistryImpl extends java.lang.Object implements TimeZoneRegistry
TimeZoneRegistry. This implementation will search the classpath for
applicable VTimeZone definitions used to back the provided TimeZone instances.| Constructor and Description |
|---|
TimeZoneRegistryImpl()
Default constructor.
|
TimeZoneRegistryImpl(java.lang.String resourcePrefix)
Creates a new instance using the specified resource prefix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all registered timezones.
|
TimeZone |
getTimeZone(java.lang.String id)
Returns a timezone with the specified identifier.
|
void |
register(TimeZone timezone)
Registers a new timezone for use with iCalendar objects.
|
public TimeZoneRegistryImpl()
public TimeZoneRegistryImpl(java.lang.String resourcePrefix)
resourcePrefix - a prefix prepended to classpath resource lookups for default timezonespublic final void register(TimeZone timezone)
TimeZoneRegistryregister in interface TimeZoneRegistrytimezone - a timezone to be registered for use with iCalendar
objectspublic final void clear()
TimeZoneRegistryclear in interface TimeZoneRegistrypublic final TimeZone getTimeZone(java.lang.String id)
TimeZoneRegistrygetTimeZone in interface TimeZoneRegistryid - a timezone identifier