| |
|
| java.lang.Object org.joda.time.tz.ZoneInfoProvider
ZoneInfoProvider | public class ZoneInfoProvider implements Provider(Code) | | ZoneInfoProvider loads compiled data files as generated by
ZoneInfoCompiler .
ZoneInfoProvider is thread-safe and publicly immutable.
author: Brian S O'Neill since: 1.0 |
Constructor Summary | |
public | ZoneInfoProvider(File fileDir) ZoneInfoProvider searches the given directory for compiled data files. | public | ZoneInfoProvider(String resourcePath) ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files. | public | ZoneInfoProvider(String resourcePath, ClassLoader loader) ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files.
Parameters: loader - ClassLoader to load compiled data files from. |
Method Summary | |
public synchronized Set | getAvailableIDs() Gets a list of all the available zone ids. | public synchronized 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(Code) | | ZoneInfoProvider searches the given directory for compiled data files.
throws: IOException - if directory or map file cannot be read |
ZoneInfoProvider | public ZoneInfoProvider(String resourcePath) throws IOException(Code) | | ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files. Resources are loaded from the ClassLoader that
loaded this class.
throws: IOException - if directory or map file cannot be read |
ZoneInfoProvider | public ZoneInfoProvider(String resourcePath, ClassLoader loader) throws IOException(Code) | | ZoneInfoProvider searches the given ClassLoader resource path for
compiled data files.
Parameters: loader - ClassLoader to load compiled data files from. If null,use system ClassLoader. throws: IOException - if directory or map file cannot be read |
getAvailableIDs | public synchronized Set getAvailableIDs()(Code) | | Gets a list of all the available zone ids.
the zone ids |
getZone | public synchronized DateTimeZone getZone(String id)(Code) | | 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.
Parameters: id - the id to load the loaded zone |
uncaughtException | protected void uncaughtException(Exception ex)(Code) | | Called if an exception is thrown from getZone while loading zone data.
Parameters: ex - the exception |
|
|
|