net.fortuna.ical4j.model

Class TimeZoneRegistryImpl

Implemented Interfaces:
TimeZoneRegistry

public class TimeZoneRegistryImpl
extends java.lang.Object
implements TimeZoneRegistry

$Id: TimeZoneRegistryImpl.java,v 1.13 2008/12/28 13:12:17 fortuna Exp $ 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()
TimeZone
getTimeZone(String id)
void
register(TimeZone timezone)

Constructor Details

TimeZoneRegistryImpl

public TimeZoneRegistryImpl()
Default constructor.

TimeZoneRegistryImpl

public TimeZoneRegistryImpl(String resourcePrefix)
Creates a new instance using the specified resource prefix.
Parameters:
resourcePrefix - a prefix prepended to classpath resource lookups for default timezones

Method Details

clear

public final void clear()

getTimeZone

public final TimeZone getTimeZone(String id)

register

public final void register(TimeZone timezone)