|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.model.TimeZoneRegistryImpl
public class TimeZoneRegistryImpl
$Id$
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.
Constructor Summary | |
---|---|
TimeZoneRegistryImpl()
Default constructor. |
|
TimeZoneRegistryImpl(String resourcePrefix)
Creates a new instance using the specified resource prefix. |
Method Summary | |
---|---|
void |
clear()
Clears all registered timezones. |
TimeZone |
getTimeZone(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeZoneRegistryImpl()
public TimeZoneRegistryImpl(String resourcePrefix)
resourcePrefix
- a prefix prepended to classpath resource lookups for default timezonesMethod Detail |
---|
public final void register(TimeZone timezone)
register
in interface TimeZoneRegistry
timezone
- a timezone to be registered for use with iCalendar
objectspublic final void register(TimeZone timezone, boolean update)
register
in interface TimeZoneRegistry
timezone
- 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 TimeZoneRegistry
public final TimeZone getTimeZone(String id)
getTimeZone
in interface TimeZoneRegistry
id
- a timezone identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |