org.joda.time.tz
Class ZoneInfoProvider
java.lang.Object
org.joda.time.tz.ZoneInfoProvider
- Provider
public class ZoneInfoProvider
extends java.lang.Object
ZoneInfoProvider loads compiled data files as generated by
ZoneInfoCompiler
.
ZoneInfoProvider is thread-safe and publicly immutable.
ZoneInfoProvider(File fileDir) - ZoneInfoProvider searches the given directory for compiled data files.
|
ZoneInfoProvider(String resourcePath) - ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files.
|
ZoneInfoProvider(String resourcePath, ClassLoader loader) - ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files.
|
Set | getAvailableIDs() - Gets a list of all the available zone ids.
|
DateTimeZone | getZone(String id) - If an error is thrown while loading zone data, uncaughtException is
called to log the error and null is returned for this and all future
requests.
|
protected void | uncaughtException(Exception ex) - Called if an exception is thrown from getZone while loading zone data.
|
ZoneInfoProvider
public ZoneInfoProvider(File fileDir)
throws IOException
ZoneInfoProvider searches the given directory for compiled data files.
ZoneInfoProvider
public ZoneInfoProvider(String resourcePath)
throws IOException
ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files. Resources are loaded from the ClassLoader that
loaded this class.
ZoneInfoProvider
public ZoneInfoProvider(String resourcePath,
ClassLoader loader)
throws IOException
ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files.
loader
- ClassLoader to load compiled data files from. If null,
use system ClassLoader.
getAvailableIDs
public Set getAvailableIDs()
Gets a list of all the available zone ids.
- getAvailableIDs in interface Provider
getZone
public DateTimeZone getZone(String id)
If an error is thrown while loading zone data, uncaughtException is
called to log the error and null is returned for this and all future
requests.
- getZone in interface Provider
uncaughtException
protected void uncaughtException(Exception ex)
Called if an exception is thrown from getZone while loading zone data.
Copyright (c) 2001-2006 - Joda.org