| com.ibm.icu.util.UResourceBundle com.ibm.icu.impl.ICUResourceBundle
All known Subclasses: com.ibm.icu.impl.ICUResourceBundleImpl,
Method Summary | |
public static ICUResourceBundle | createBundle(String baseName, String localeID, ClassLoader root) | public boolean | equals(Object other) | final protected static ICUResourceBundle | findResourceWithFallback(String path, ICUResourceBundle actualBundle, ICUResourceBundle requested) | public ICUResourceBundle | get(int index) Returns the resource in a given resource at the specified index.
Parameters: index - an index to the wanted resource. | public ICUResourceBundle | get(String key) Returns a resource in a given resource that has a given key. | public static Set | getAvailableLocaleNameSet(String bundlePrefix) 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. | final public static Locale[] | getAvailableLocales(String baseName) Get the set of Locales installed in the specified bundles. | final public static Locale[] | getAvailableLocales() Get the set of Locales installed the base bundle. | final public static ULocale[] | getAvailableULocales(String baseName) Get the set of Locales installed in the specified bundles. | final public static ULocale[] | getAvailableULocales() Get the set of ULocales installed the base bundle. | public ByteBuffer | getBinary() Returns a binary data from a binary resource. | public byte[] | getBinary(byte[] ba) Returns a binary data from a binary resource.
Parameters: ba - Establish the return type from this function. | public static UResourceBundle | getBundleInstance(String baseName, String localeID, ClassLoader root, boolean disableFallback) | public static Set | getFullLocaleNameSet() Return a set of all the locale names supported by a collection of
resource bundles. | public static Set | getFullLocaleNameSet(String bundlePrefix) Return a set of all the locale names supported by a collection of
resource bundles. | final public static ULocale | getFunctionalEquivalent(String baseName, String resName, String keyword, ULocale locID, boolean fillinIsAvailable) Returns a functionally equivalent locale, considering keywords as well, for the specified keyword.
Parameters: baseName - resource specifier Parameters: resName - top level resource to consider (such as "collations") Parameters: keyword - a particular keyword to consider (such as "collation" ) Parameters: locID - The requested locale Parameters: fillinIsAvailable - If non-null, 1-element array of fillin parameter that indicates whether therequested locale was available. | protected ICUResourceBundle | getImpl(int index, HashMap table, ICUResourceBundle requested) | protected ICUResourceBundle | getImpl(String key, HashMap table, ICUResourceBundle requested) | public int | getInt() Returns a signed integer from a resource. | public int[] | getIntVector() Returns a 32 bit integer array from a resource. | public ICUResourceBundleIterator | getIterator() | public String | getKey() Returns the key associated with a given resource. | public Enumeration | getKeys() | final public static String[] | getKeywordValues(String baseName, String keyword) Given a tree path and keyword, return a string enumeration of all possible values for that keyword.
Parameters: baseName - resource specifier Parameters: keyword - a particular keyword to consider, must match a top level resource namewithin the tree. | public int | getLoadingStatus() Returns the loading status of a particular resource. | public Locale | getLocale() Returns the locale of this resource bundle. | abstract protected String | getLocaleID() | final public static Locale[] | getLocaleList(ULocale[] ulocales) Convert a list of ULocales to a list of Locales. | protected boolean | getNoFallback() Get the noFallback flag specified in the loaded bundle. | abstract public UResourceBundle | getParent() Returns the parent bundle of this bundle
UResourceBundle the parent of this bundle. | public int | getSize() Returns the size of a resource. | public String | getString() | public String | getString(int index) Returns the string in a given resource at the specified index.
Parameters: index - an index to the wanted string. | public String[] | getStringArray() | public String | getStringWithFallback(String path) | public int | getType() Returns the type of a resource. | public int | getUInt() Returns a unsigned integer from a resource. | public VersionInfo | getVersion() Return the version number associated with this UResourceBundle as an
VersionInfo object. | public ICUResourceBundle | getWithFallback(String path) | protected ICUResourceBundle | handleGet(String key, HashMap table, ICUResourceBundle requested) | protected ICUResourceBundle | handleGet(int index, HashMap table, ICUResourceBundle requested) | protected ICUResourceBundle | handleGet(int index, ICUResourceBundle requested) | protected ICUResourceBundle | handleGet(String key, ICUResourceBundle requested) | protected Enumeration | handleGetKeys() | protected Object | handleGetObject(String key) | protected String[] | handleGetStringArray() | protected static synchronized UResourceBundle | instantiateBundle(String baseName, String localeID, ClassLoader root, boolean disableFallback) | public void | setLoadingStatus(int newStatus) |
ALIAS | final protected static int ALIAS(Code) | | Resource type constant for aliases;
internally stores a string which identifies the actual resource
storing the data (can be in a different resource bundle).
Resolved internally before delivering the actual resource through the API.
|
ARRAY | final public static int ARRAY(Code) | | Resource type constant for arrays of resources.
|
BINARY | final public static int BINARY(Code) | | Resource type constant for binary data.
|
FROM_FALLBACKFROM_ROOTFROM_DEFAULTFROM_LOCALE | final public static int FROM_FALLBACKFROM_ROOTFROM_DEFAULTFROM_LOCALE(Code) | | |
ICU_BASE_NAME | final public static String ICU_BASE_NAME(Code) | | The base name of ICU data to be used with getBundleInstance API
|
ICU_BRKITR_BASE_NAME | final public static String ICU_BRKITR_BASE_NAME(Code) | | The base name of rbbi data to be used with getBundleInstance API
|
ICU_BRKITR_NAME | final public static String ICU_BRKITR_NAME(Code) | | The base name of rbbi data to be used with getData API
|
ICU_BUNDLE | final public static String ICU_BUNDLE(Code) | | The data path to be used with getBundleInstance API
|
ICU_COLLATION_BASE_NAME | final public static String ICU_COLLATION_BASE_NAME(Code) | | The base name of collation data to be used with getBundleInstance API
|
ICU_DATA_CLASS_LOADER | final public static ClassLoader ICU_DATA_CLASS_LOADER(Code) | | The class loader constant to be used with getBundleInstance API
|
ICU_DATA_PATH | final protected static String ICU_DATA_PATH(Code) | | The data path to be used with getBundleInstance API
|
ICU_RBNF_BASE_NAME | final public static String ICU_RBNF_BASE_NAME(Code) | | The base name of rbnf data to be used with getBundleInstance API
|
ICU_TRANSLIT_BASE_NAME | final public static String ICU_TRANSLIT_BASE_NAME(Code) | | The base name of transliterator data to be used with getBundleInstance API
|
INSTALLED_LOCALES | final protected static String INSTALLED_LOCALES(Code) | | The name of the resource containing the installed locales
|
INT | final public static int INT(Code) | | Resource type constant for a single 28-bit integer, interpreted as
signed or unsigned by the getInt() function.
See Also: ICUResourceBundle.getInt |
NONE | final public static int NONE(Code) | | Resource type constant for "no resource".
|
RES_BOGUS | final protected static long RES_BOGUS(Code) | | |
STRING | final public static int STRING(Code) | | Resource type constant for strings.
|
TABLE | final public static int TABLE(Code) | | Resource type constant for tables of key-value pairs.
|
TABLE32 | final protected static int TABLE32(Code) | | Internal use only.
Alternative resource type constant for tables of key-value pairs.
Never returned by getType().
|
UNSIGNED_INT_MASK | final protected static long UNSIGNED_INT_MASK(Code) | | |
isTopLevel | protected boolean isTopLevel(Code) | | |
resource | protected long resource(Code) | | |
get | public ICUResourceBundle get(int index)(Code) | | Returns the resource in a given resource at the specified index.
Parameters: index - an index to the wanted resource. the sub resource UResourceBundle object throws: IndexOutOfBoundsException - |
getAvailableLocaleNameSet | public static Set getAvailableLocaleNameSet(String bundlePrefix)(Code) | | Return a set of the locale names supported by a collection of resource
bundles.
Parameters: bundlePrefix - the prefix of the resource bundles to use. |
getAvailableLocaleNameSet | public static Set getAvailableLocaleNameSet()(Code) | | Return a set of the locale names supported by a collection of resource
bundles.
|
getAvailableLocales | final public static Locale[] getAvailableLocales(String baseName)(Code) | | Get the set of Locales installed in the specified bundles.
the list of available locales |
getAvailableLocales | final public static Locale[] getAvailableLocales()(Code) | | Get the set of Locales installed the base bundle.
the list of available locales |
getAvailableULocales | final public static ULocale[] getAvailableULocales(String baseName)(Code) | | Get the set of Locales installed in the specified bundles.
the list of available locales |
getAvailableULocales | final public static ULocale[] getAvailableULocales()(Code) | | Get the set of ULocales installed the base bundle.
the list of available locales |
getFullLocaleNameSet | public static Set getFullLocaleNameSet()(Code) | | Return a set of all the locale names supported by a collection of
resource bundles.
|
getFullLocaleNameSet | public static Set getFullLocaleNameSet(String bundlePrefix)(Code) | | Return a set of all the locale names supported by a collection of
resource bundles.
Parameters: bundlePrefix - the prefix of the resource bundles to use. |
getFunctionalEquivalent | final public static ULocale getFunctionalEquivalent(String baseName, String resName, String keyword, ULocale locID, boolean fillinIsAvailable)(Code) | | Returns a functionally equivalent locale, considering keywords as well, for the specified keyword.
Parameters: baseName - resource specifier Parameters: resName - top level resource to consider (such as "collations") Parameters: keyword - a particular keyword to consider (such as "collation" ) Parameters: locID - The requested locale Parameters: fillinIsAvailable - If non-null, 1-element array of fillin parameter that indicates whether therequested locale was available. The locale is defined as 'available' if it physicallyexists within the specified tree. the locale |
getKey | public String getKey()(Code) | | Returns the key associated with a given resource. Not all the resources have a key - only
those that are members of a table.
a key associated to this resource, or NULL if it doesn't have a key |
getKeywordValues | final public static String[] getKeywordValues(String baseName, String keyword)(Code) | | Given a tree path and keyword, return a string enumeration of all possible values for that keyword.
Parameters: baseName - resource specifier Parameters: keyword - a particular keyword to consider, must match a top level resource namewithin the tree. (i.e. "collations") |
getLoadingStatus | public int getLoadingStatus()(Code) | | Returns the loading status of a particular resource.
FROM_FALLBACK if the resource is fetched from fallback bundleFROM_ROOT if the resource is fetched from root bundle.FROM_DEFAULT if the resource is fetched from the default locale. |
getLocale | public Locale getLocale()(Code) | | Returns the locale of this resource bundle. This method can be used after
a call to getBundle() to determine whether the resource bundle returned
really corresponds to the requested locale or is a fallback.
the locale of this resource bundle |
getLocaleID | abstract protected String getLocaleID()(Code) | | Returns the locale id of this bundle as String
String locale id |
getLocaleList | final public static Locale[] getLocaleList(ULocale[] ulocales)(Code) | | Convert a list of ULocales to a list of Locales. ULocales with a script code will not be converted
since they cannot be represented as a Locale. This means that the two lists will not match
one-to-one, and that the returned list might be shorter than the input list.
Parameters: ulocales - a list of ULocales to convert to a list of Locales. the list of converted ULocales |
getNoFallback | protected boolean getNoFallback()(Code) | | Get the noFallback flag specified in the loaded bundle.
The noFallback flag. |
getParent | abstract public UResourceBundle getParent()(Code) | | Returns the parent bundle of this bundle
UResourceBundle the parent of this bundle. Returns null if none |
getSize | public int getSize()(Code) | | Returns the size of a resource. Size for scalar types is always 1,
and for vector/table types is the number of child resources.
Warning: Integer array is treated as a scalar type. There are no
APIs to access individual members of an integer array. It
is always returned as a whole.
number of resources in a given resource. |
getVersion | public VersionInfo getVersion()(Code) | | Return the version number associated with this UResourceBundle as an
VersionInfo object.
VersionInfo object containing the version of the bundle |
getWithFallback | public ICUResourceBundle getWithFallback(String path) throws MissingResourceException(Code) | | 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:
UResourceBundle bundle = UResourceBundle.getBundleInstance("de__PHONEBOOK");
ICUResourceBundle result = null;
if(bundle instanceof ICUListResourceBundle){
result = ((ICUListResourceBundle) bundle).getWithFallback("collations/default");
}
Parameters: path - The path to the required resource key resource represented by the key exception: MissingResourceException - |
handleGetStringArray | protected String[] handleGetStringArray()(Code) | | |
setLoadingStatus | public void setLoadingStatus(int newStatus)(Code) | | |
Methods inherited from com.ibm.icu.util.UResourceBundle | protected static synchronized void addToCache(ClassLoader cl, String fullName, ULocale defaultLocale, UResourceBundle b)(Code)(Java Doc) abstract protected String getBaseName()(Code)(Java Doc) public static UResourceBundle getBundleInstance(String baseName, String localeName)(Code)(Java Doc) public static UResourceBundle getBundleInstance(String baseName, String localeName, ClassLoader root)(Code)(Java Doc) protected static UResourceBundle getBundleInstance(String baseName, String localeName, ClassLoader root, boolean disableFallback)(Code)(Java Doc) public static UResourceBundle getBundleInstance(ULocale locale)(Code)(Java Doc) public static UResourceBundle getBundleInstance(String baseName)(Code)(Java Doc) public static UResourceBundle getBundleInstance(String baseName, Locale locale)(Code)(Java Doc) public static UResourceBundle getBundleInstance(String baseName, ULocale locale)(Code)(Java Doc) public static UResourceBundle getBundleInstance(String baseName, Locale locale, ClassLoader loader)(Code)(Java Doc) public static UResourceBundle getBundleInstance(String baseName, ULocale locale, ClassLoader loader)(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) abstract protected String getLocaleID()(Code)(Java Doc) abstract protected UResourceBundle getParent()(Code)(Java Doc) abstract public ULocale getULocale()(Code)(Java Doc) protected static synchronized UResourceBundle instantiateBundle(String baseName, String localeName, ClassLoader root, boolean disableFallback)(Code)(Java Doc) protected static synchronized UResourceBundle loadFromCache(ClassLoader cl, String fullName, ULocale defaultLocale)(Code)(Java Doc) abstract protected void setLoadingStatus(int newStatus)(Code)(Java Doc)
|
|
|