|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.time.tz.ZoneInfoProvider
ZoneInfoProvider loads compiled data files as generated by
ZoneInfoCompiler
.
ZoneInfoProvider is thread-safe and publicly immutable.
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZoneInfoProvider(File fileDir) throws IOException
IOException
- if directory or map file cannot be readpublic ZoneInfoProvider(String resourcePath) throws IOException
IOException
- if directory or map file cannot be readpublic ZoneInfoProvider(String resourcePath, ClassLoader loader) throws IOException
loader
- ClassLoader to load compiled data files from. If null,
use system ClassLoader.
IOException
- if directory or map file cannot be readMethod Detail |
public DateTimeZone getZone(String id)
getZone
in interface Provider
id
- the id to load
public Set getAvailableIDs()
getAvailableIDs
in interface Provider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |