|
Joda Time API | ||||||||||
| 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.
| Constructor Summary | |
ZoneInfoProvider(java.io.File fileDir)
ZoneInfoProvider searches the given directory for compiled data files. |
|
ZoneInfoProvider(java.lang.String resourcePath)
ZoneInfoProvider searches the given ClassLoader resource path for compiled data files. |
|
ZoneInfoProvider(java.lang.String resourcePath,
java.lang.ClassLoader loader)
ZoneInfoProvider searches the given ClassLoader resource path for compiled data files. |
|
| Method Summary | |
java.util.Set |
getAvailableIDs()
Returns an unmodifiable set of ids. |
DateTimeZone |
getDateTimeZone(java.lang.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(java.lang.Exception e)
Called if an exception is thrown from getDateTimeZone while loading zone data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZoneInfoProvider(java.io.File fileDir)
throws java.io.IOException
java.io.IOException - if directory or map file cannot be read
public ZoneInfoProvider(java.lang.String resourcePath)
throws java.io.IOException
java.io.IOException - if directory or map file cannot be read
public ZoneInfoProvider(java.lang.String resourcePath,
java.lang.ClassLoader loader)
throws java.io.IOException
loader - ClassLoader to load compiled data files from. If null,
use system ClassLoader.
java.io.IOException - if directory or map file cannot be read| Method Detail |
public DateTimeZone getDateTimeZone(java.lang.String id)
getDateTimeZone in interface Providerpublic java.util.Set getAvailableIDs()
Provider
getAvailableIDs in interface Providerprotected void uncaughtException(java.lang.Exception e)
|
Joda Time API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||