Class TimeZoneNamesImpl.ZoneStringsLoader
java.lang.Object
com.ibm.icu.impl.UResource.Sink
com.ibm.icu.impl.TimeZoneNamesImpl.ZoneStringsLoader
- Enclosing class:
TimeZoneNamesImpl
Loads all meta zone and time zone names for this TimeZoneNames' locale.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intPrepare for several hundred time zones and meta zones.private StringBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidconsumeNamesTable(UResource.Key key, UResource.Value value, boolean noFallback) (package private) UResource.KeycreateKey(UResource.Key key) (package private) booleanisMetaZone(UResource.Key key) (package private) voidload()Caller must synchronize.private StringmzIDFromKey(UResource.Key key) Equivalent to key.substring(MZ_PREFIX.length()) except reuses our StringBuilder.voidput(UResource.Key key, UResource.Value value, boolean noFallback) Called once for each bundle (child-parent-...-root).private StringtzIDFromKey(UResource.Key key)
-
Field Details
-
INITIAL_NUM_ZONES
private static final int INITIAL_NUM_ZONESPrepare for several hundred time zones and meta zones. _zoneStrings.getSize() is ineffective in a sparsely populated locale like en-GB.- See Also:
-
keyToLoader
-
sb
-
-
Constructor Details
-
ZoneStringsLoader
private ZoneStringsLoader()
-
-
Method Details
-
load
void load()Caller must synchronize. -
put
Description copied from class:UResource.SinkCalled once for each bundle (child-parent-...-root). The value is normally an array or table resource, and implementations of this method normally iterate over the tree of resource items stored there.- Specified by:
putin classUResource.Sink- Parameters:
key- Initially the key string of the enumeration-start resource. Empty if the enumeration starts at the top level of the bundle. Reuse for output values from Array and Table getters.value- Call getArray() or getTable() as appropriate. Then reuse for output values from Array and Table getters.noFallback- true if the bundle has no parent; that is, its top-level table has the nofallback attribute, or it is the root bundle of a locale tree.
-
consumeNamesTable
-
createKey
-
isMetaZone
-
mzIDFromKey
Equivalent to key.substring(MZ_PREFIX.length()) except reuses our StringBuilder. -
tzIDFromKey
-