public class ZoneInfoProvider extends java.lang.Object implements Provider
ZoneInfoCompiler
.
ZoneInfoProvider is thread-safe and publicly immutable.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAvailableIDs()
Gets a list of all the available zone ids.
|
DateTimeZone |
getZone(java.lang.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.
|
public ZoneInfoProvider(java.io.File fileDir) throws java.io.IOException
java.io.IOException
- if directory or map file cannot be readpublic ZoneInfoProvider(java.lang.String resourcePath) throws java.io.IOException
java.io.IOException
- if directory or map file cannot be readpublic 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 readpublic DateTimeZone getZone(java.lang.String id)
public java.util.Set<java.lang.String> getAvailableIDs()
getAvailableIDs
in interface Provider
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"