net.fortuna.ical4j.model
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.
|
void |
register(TimeZone timezone,
boolean update)
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)
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(java.lang.String id)
getTimeZone in interface TimeZoneRegistryid - a timezone identifierCopyright © 2004-2014 Micronode. All Rights Reserved.