| Modifier and Type | Field and Description |
|---|---|
| private List | regionIds
All the regions that are available. |
| private final Map | regionToRules
Region to rules mapping |
| private String | versionId
Version Id of this tzdb rules |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | load(DataInputStream
the DateInputStream to load, not null dis)Loads the rules from a DateInputStream, often in a jar file. |
| protected ZoneRules | provideRules(String zoneId, boolean forCaching)
Implements abstract java. SPI method to get the rules for the zone ID.
This loads the rules for the specified zone ID.
The provider implementation must validate that the zone ID is valid and
available, throwing a |
| protected NavigableMap | provideVersions(String zoneId)
Implements abstract java. SPI method to get the history of rules for the zone ID. This returns a map of historical rules keyed by a version string. |
| protected Set | provideZoneIds()
Implements abstract java. SPI method to get the available zone IDs. |
| public String |
| regionIds | back to summary |
|---|---|
| private List<String> regionIds All the regions that are available. | |
| regionToRules | back to summary |
|---|---|
| private final Map<String, Object> regionToRules Region to rules mapping | |
| versionId | back to summary |
|---|---|
| private String versionId Version Id of this tzdb rules | |
| TzdbZoneRulesProvider | back to summary |
|---|---|
| public TzdbZoneRulesProvider() Creates an instance.
Created by the
| |
| load | back to summary |
|---|---|
| private void load(DataInputStream dis) throws Exception Loads the rules from a DateInputStream, often in a jar file.
| |
| provideRules | back to summary |
|---|---|
| protected ZoneRules provideRules(String zoneId, boolean forCaching) Implements abstract java. Doc from java. SPI method to get the rules for the zone ID.
This loads the rules for the specified zone ID.
The provider implementation must validate that the zone ID is valid and
available, throwing a If the provider implementation is not dynamic, then the result of the method must be the non-null set of rules selected by the ID.
If the provider implementation is dynamic, then the flag gives the option
of preventing the returned rules from being cached in
| |
| provideVersions | back to summary |
|---|---|
| protected NavigableMap Implements abstract java. Doc from java. SPI method to get the history of rules for the zone ID. This returns a map of historical rules keyed by a version string. The exact meaning and format of the version is provider specific. The version must follow lexicographical order, thus the returned map will be order from the oldest known rules to the newest available rules. The default 'TZDB' group uses version numbering consisting of the year followed by a letter, such as '2009e' or '2012f'. Implementations must provide a result for each valid zone ID, however they do not have to provide a history of rules. Thus the map will contain at least one element, and will only contain more than one element if historical rule information is available. The returned versions remain available and valid for the lifetime of the application. A dynamic provider may increase the set of versions as more data becomes available.
| |
| provideZoneIds | back to summary |
|---|---|
| protected Set Implements abstract java. Doc from java. SPI method to get the available zone IDs.
This obtains the IDs that this The returned zone IDs remain available and valid for the lifetime of the application. A dynamic provider may increase the set of IDs as more data becomes available.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |