| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | ICUResourceBundle.AvailEntry
Holds the prefix, and lazily creates the Locale[] list or the locale name Set as needed. |
| private abstract static class | ICUResourceBundle.Loader
Loader for bundle instances, for caching. |
| public static enum | |
| protected static class | ICUResourceBundle.WholeBundle
Fields for a whole bundle, rather than any specific resource in the bundle. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIAS
Resource type constant for aliases; internally stores a string which identifies the actual resource storing the data (can be in a different resource bundle). |
| public static final int | ARRAY16
Resource type constant for arrays with 16-bit count and values. |
| private static CacheBase | |
| private static final Comparator | |
| private ICUResourceBundle | |
| private static final boolean | |
| private static final String | |
| private static final String | |
| private static CacheBase | |
| private static final char | |
| public static final ClassLoader | ICU_DATA_CLASS_LOADER
The class loader constant to be used with getBundleInstance API |
| private static final String | |
| private static final String | |
| protected static final String | INSTALLED_LOCALES
The name of the resource containing the installed locales |
| protected String | key
Data member where the subclasses store the key. |
| private static final String | |
| public static final String | NO_INHERITANCE_MARKER
CLDR string value "∅∅∅" prevents fallback to the parent bundle. |
| public static final int | RES_BOGUS
A resource word value that means "no resource". |
| private static final char | |
| private static final String | |
| public static final int | STRING_V2
Resource type constant for 16-bit Unicode strings in formatVersion 2. |
| public static final int | TABLE16
Resource type constant for tables with 16-bit count, key offsets and values. |
| public static final int | TABLE32
Resource type constant for tables with 32-bit count, key offsets and values. |
| pack-priv ICUResourceBundle. |
| Access | Constructor and Description |
|---|---|
| protected | ICUResourceBundle(ICUResourceBundle.
Constructor for the root table of a bundle. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static final void | |
| private static final void | |
| private static void | |
| public ICUResourceBundle | |
| public ICUResourceBundle | |
| private static int | |
| public static ICUResourceBundle | Returns: the new bundleThe name for the bundle. baseName, String The locale identification. localeID, ClassLoader The ClassLoader object root. root)Create a bundle using a reader. |
| private static Set | |
| private static Set | |
| private static final EnumMap | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| private static final ICUResourceBundle | |
| private static final ICUResourceBundle | findResourceWithFallback(String[] keys, int depth, ICUResourceBundle base, UResourceBundle requested)
|
| public String | |
| private static final String | findStringWithFallback(String path, UResourceBundle actualBundle, UResourceBundle requested)
Like findResourceWithFallback(...).getString() but with minimal creation of intermediate ICUResourceBundle objects. |
| public ICUResourceBundle | findTopLevel(int
the index of the resource index)
Returns a resource in a given resource that has a given index, or null if the
resource is not found.
|
| public ICUResourceBundle | findTopLevel(String
the key associated with the wanted resource aKey)
Returns a resource in a given resource that has a given key, or null if the
resource is not found.
|
| public ICUResourceBundle | Returns: the resource, or nullthe path to the resource path)Like getWithFallback, but returns null if the resource is not found instead of throwing an exception. |
| pack-priv ICUResourceBundle | |
| protected static ICUResourceBundle | Returns: the aliased resource objectA direct or indirect container of the alias. base, String[] The key path to the alias, or null. (const) keys, int The length of the key path, if keys != null. depth, String The alias' own key within this current container, if keys == null. key, int The alias resource int. _resource, HashMap<String, String> Set of alias path strings already visited, for detecting loops.
We cannot change the type (e.g., to Set aliasesVisited, UResourceBundle The original resource object from which the lookup started,
which is the starting point for "/LOCALE/..." aliases. requested)Returns the resource object referred to from the alias _resource int's path string. |
| protected static ICUResourceBundle | getAliasedResource(String rpath, ClassLoader loaderToUse, String baseName, String[] keys, int depth, String[] baseKeyPath, HashMap<String, String> aliasesVisited, UResourceBundle requested)
|
| public void | getAllChildrenWithFallback(final String
The path of the desired resource path, final UResource.A sinkUResource.Sink that gets called for each child resource of the specified resource (and each
child of the resources in its parent chain).Locates the resource specified by |
| public void | getAllItemsWithFallback(String
The path of the desired resource path, UResource.A sinkUResource.Sink that gets called for each resource in the parent chainLocates the resource specified by |
| private void | getAllItemsWithFallback(UResource.
|
| public void | |
| public static Set | getAvailableLocaleNameSet(String
the prefix of the resource bundles to use. bundlePrefix, ClassLoader loader)Return a set of the locale names supported by a collection of resource bundles. |
| public static Set | getAvailableLocaleNameSet()
Return a set of the locale names supported by a collection of resource bundles. |
| public static final Locale[] | Returns: the list of available localesGet the set of Locales installed in the specified bundles, for the specified type. |
| public static final Locale[] | Returns: the list of available localesGet the set of ULocales installed the base bundle. |
| public static final Locale[] | Returns: the list of available localesGet the set of Locales installed the base bundle, for the specified type. |
| public static final Locale[] | Returns: the list of available localesGet the set of Locales installed in the specified bundles. |
| public static final ULocale[] | Returns: the list of available localesGet the set of Locales installed in the specified bundles, for the specified type. |
| public static final ULocale[] | Returns: the list of available localesGet the set of ULocales installed the base bundle. |
| public static final ULocale[] | Returns: the list of available locales for the specified typeGet the set of ULocales installed the base bundle, for the specified type. |
| public static final ULocale[] | Returns: the list of available localesGet the set of Locales installed in the specified bundles. |
| private static ICUResourceBundle. | getAvailEntry(String key, ClassLoader loader)
Stores the locale information in a cache accessed by key (bundle prefix). |
| protected String | |
| private static ICUResourceBundle | |
| public static ICUResourceBundle | getBundleInstance(String
string containing the name of the data package.
If null the default ICU package name is used. baseName, String the locale for which a resource bundle is desired localeID, ClassLoader the class object from which to load the resource bundle root, boolean Option to disable locale inheritance.
If true the fallback chain will not be built. disableFallback)Hides com. ICU |
| public static ICUResourceBundle | |
| public static ICUResourceBundle | getBundleInstance(String baseName, String localeID, ClassLoader root, ICUResourceBundle.
|
| private static String | |
| private static String | |
| public static Set | getFullLocaleNameSet()
Return a set of all the locale names supported by a collection of resource bundles. |
| public static Set | getFullLocaleNameSet(String
the prefix of the resource bundles to use. bundlePrefix, ClassLoader loader)Return a set of all the locale names supported by a collection of resource bundles. |
| public static final ULocale | Returns: the localeresource specifier baseName, ClassLoader loader, String top level resource to consider (such as "collations") resName, String a particular keyword to consider (such as "collation" ) keyword, ULocale The requested locale locID, boolean[] If non-null, 1-element array of fillin parameter that indicates whether the
requested locale was available. The locale is defined as 'available' if it physically
exists within the specified tree and included in 'InstalledLocales'. isAvailable, boolean if true, omit keyword and value if default.
'de_DE\@collation=standard' -> 'de_DE' omitDefault)Returns a functionally equivalent locale, considering keywords as well, for the specified keyword. |
| public String | |
| public static final String[] | getKeywordValues(String
resource specifier baseName, String a particular keyword to consider, must match a top level resource name
within the tree. (i.e. "collations") keyword)Given a tree path and keyword, return a string enumeration of all possible values for that keyword. |
| public Locale | Returns: the locale of this resource bundleOverrides com. |
| protected String | |
| public static final Locale[] | Returns: the list of converted ULocalesa list of ULocales to convert to a list of Locales. ulocales)Convert a list of ULocales to a list of Locales. |
| private boolean | |
| public ICUResourceBundle | |
| public static String | |
| private int | |
| private void | getResPathKeys(String[] keys, int
must be depth)getResDepth()Fills some of the keys array with the keys on the path to this resource object. |
| private static void | getResPathKeys(String
path string path, int must be num, String[] keys, int countPathKeys(String)index where the first path key is stored start)Fills some of the keys array (from start) with the num keys from the path string. |
| public String | |
| public final Set | |
| public ULocale | |
| public UResource. | |
| public ICUResourceBundle | Returns: resource represented by the keyThe path to the required resource key path)This method performs multilevel fallback for fetching items from the
bundle e.g: If resource is in the form de__PHONEBOOK{ collations{
default{ "phonebook"} } } If the value of "default" key needs to be
accessed, then do: |
| protected Enumeration | |
| public int | |
| private static ICUResourceBundle | instantiateBundle(final String baseName, final String localeID, final String origLocaleID, final String defaultID, final ClassLoader root, final ICUResourceBundle.
|
| public boolean | |
| protected boolean | isTopLevelResource()
Overrides com. |
| private static boolean | |
| protected void | setParent(ResourceBundle
this bundle's parent bundle. parent)Overrides java. |
| public final void |