public class ZoneInfoProvider extends Object implements Provider
ZoneInfoCompiler
.
ZoneInfoProvider is thread-safe and publicly immutable.
Constructor and Description |
---|
ZoneInfoProvider()
Search the default classloader resource path for compiled data files.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAvailableIDs()
Gets a list of all the available zone ids.
|
DateTimeZone |
getZone(String id)
If an error is thrown while loading zone data, the exception is logged
to system 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.
|
public ZoneInfoProvider() throws IOException
IOException
- if directory or map file cannot be readpublic 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 readpublic DateTimeZone getZone(String id)
public Set<String> getAvailableIDs()
getAvailableIDs
in interface Provider
protected void uncaughtException(Exception ex)
ex
- the exceptionCopyright © 2002–2024 Joda.org. All rights reserved.