Package com.ibm.icu.impl
Class ResourceBundleWrapper
- java.lang.Object
-
- java.util.ResourceBundle
-
- com.ibm.icu.util.UResourceBundle
-
- com.ibm.icu.impl.ResourceBundleWrapper
-
public class ResourceBundleWrapper extends UResourceBundle
just a wrapper for Java ListResourceBundles and
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
-
-
Field Summary
-
Fields inherited from class com.ibm.icu.util.UResourceBundle
ARRAY, BINARY, INT, INT_VECTOR, NONE, STRING, TABLE
-
Fields inherited from class java.util.ResourceBundle
parent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetBaseName()Returns the base name of the resource bundlestatic UResourceBundlegetBundleInstance(String baseName, String localeID, ClassLoader root, boolean disableFallback)Enumeration<String>getKeys()Returns the keys in this bundle as an enumerationprotected StringgetLocaleID()Returns the localeIDUResourceBundlegetParent()Returns the parent bundleULocalegetULocale()Returns the RFC 3066 conformant locale id of this resource bundle.protected ObjecthandleGetObject(String aKey)Returns the named resource from thisResourceBundle, or null if the resource is not found.protected static UResourceBundleinstantiateBundle(String baseName, String localeID, ClassLoader root, boolean disableFallback)protected voidsetLoadingStatus(int newStatus)This method is for setting the loading status of the resource.-
Methods inherited from class com.ibm.icu.util.UResourceBundle
addToCache, findTopLevel, findTopLevel, get, get, getBinary, getBinary, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getInt, getIntVector, getIterator, getKey, getLocale, getSize, getString, getString, getStringArray, getType, getUInt, getVersion, handleGet, handleGet, handleGetKeys, handleGetStringArray, handleKeySet, isTopLevelResource, keySet, loadFromCache, resetBundleCache
-
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, setParent
-
-
-
-
Method Detail
-
setLoadingStatus
protected void setLoadingStatus(int newStatus)
Description copied from class:UResourceBundleThis method is for setting the loading status of the resource. The status is analogous to the warning status in ICU4C.- Specified by:
setLoadingStatusin classUResourceBundle
-
handleGetObject
protected Object handleGetObject(String aKey)
Description copied from class:UResourceBundleReturns the named resource from thisResourceBundle, or null if the resource is not found.- Overrides:
handleGetObjectin classUResourceBundle- Parameters:
aKey- the name of the resource.- Returns:
- the resource object.
-
getKeys
public Enumeration<String> getKeys()
Description copied from class:UResourceBundleReturns the keys in this bundle as an enumeration- Overrides:
getKeysin classUResourceBundle- Returns:
- an enumeration containing key strings, which is empty if this is not a bundle or a table resource
-
getLocaleID
protected String getLocaleID()
Description copied from class:UResourceBundleReturns the localeID- Specified by:
getLocaleIDin classUResourceBundle- Returns:
- The string representation of the localeID
-
getBaseName
protected String getBaseName()
Description copied from class:UResourceBundleReturns the base name of the resource bundle- Specified by:
getBaseNamein classUResourceBundle- Returns:
- The string representation of the base name
-
getULocale
public ULocale getULocale()
Description copied from class:UResourceBundleReturns the RFC 3066 conformant locale id of this resource bundle. This method can be used after a call to getBundleInstance() to determine whether the resource bundle returned really corresponds to the requested locale or is a fallback.- Specified by:
getULocalein classUResourceBundle- Returns:
- the locale of this resource bundle
-
getParent
public UResourceBundle getParent()
Description copied from class:UResourceBundleReturns the parent bundle- Specified by:
getParentin classUResourceBundle- Returns:
- The parent bundle
-
getBundleInstance
public static UResourceBundle getBundleInstance(String baseName, String localeID, ClassLoader root, boolean disableFallback)
-
instantiateBundle
protected static UResourceBundle instantiateBundle(String baseName, String localeID, ClassLoader root, boolean disableFallback)
-
-