Class ICUResourceBundleImpl.ResourceBinary
java.lang.Object
java.util.ResourceBundle
com.ibm.icu.util.UResourceBundle
com.ibm.icu.impl.ICUResourceBundle
com.ibm.icu.impl.ICUResourceBundleImpl
com.ibm.icu.impl.ICUResourceBundleImpl.ResourceBinary
- Enclosing class:
ICUResourceBundleImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class ICUResourceBundleImpl
ICUResourceBundleImpl.ResourceArray, ICUResourceBundleImpl.ResourceContainer, ICUResourceBundleImpl.ResourceTableNested classes/interfaces inherited from class ICUResourceBundle
ICUResourceBundle.OpenType, ICUResourceBundle.WholeBundleNested classes/interfaces inherited from class ResourceBundle
ResourceBundle.Control -
Field Summary
Fields inherited from class ICUResourceBundleImpl
resourceFields inherited from class ICUResourceBundle
ALIAS, ARRAY16, ICU_DATA_CLASS_LOADER, INSTALLED_LOCALES, key, NO_INHERITANCE_MARKER, RES_BOGUS, STRING_V2, TABLE16, TABLE32, wholeBundleFields inherited from class UResourceBundle
ARRAY, BINARY, INT, INT_VECTOR, NONE, STRING, TABLEFields inherited from class ResourceBundle
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a binary data item from a binary resource, as a read-only ByteBuffer.byte[]getBinary(byte[] ba) Returns a binary data from a binary resource, as a byte array with a copy of the bytes from the resource bundle.intgetType()Returns the type of a resource.Methods inherited from class ICUResourceBundleImpl
createBundleObject, getResourceMethods inherited from class ICUResourceBundle
at, at, createBundle, equals, findStringWithFallback, findTopLevel, findTopLevel, findWithFallback, get, getAliasedResource, getAliasedResource, getAllChildrenWithFallback, getAllItemsWithFallback, getAllItemsWithFallbackNoFail, getAvailableLocaleNameSet, getAvailableLocaleNameSet, getAvailableLocales, getAvailableLocales, getAvailableLocales, getAvailableLocales, getAvailableULocales, getAvailableULocales, getAvailableULocales, getAvailableULocales, getBaseName, getBundleInstance, getBundleInstance, getBundleInstance, getFullLocaleNameSet, getFullLocaleNameSet, getFunctionalEquivalent, getKey, getKeywordValues, getLocale, getLocaleID, getLocaleList, getParent, getParentLocaleID, getStringWithFallback, getTopLevelKeySet, getULocale, getValueWithFallback, getWithFallback, handleGetKeys, hashCode, isRoot, isTopLevelResource, setParent, setTopLevelKeySetMethods inherited from class UResourceBundle
get, get, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getBundleInstance, getInt, getIntVector, getIterator, getKeys, getSize, getString, getString, getStringArray, getUInt, getVersion, handleGet, handleGet, handleGetObject, handleGetStringArray, handleKeySet, instantiateBundle, keySetMethods inherited from class ResourceBundle
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray
-
Constructor Details
-
ResourceBinary
ResourceBinary(ICUResourceBundleImpl container, String key, int resource)
-
-
Method Details
-
getType
public int getType()Description copied from class:UResourceBundle- Overrides:
getTypein classUResourceBundle- Returns:
- type of the given resource.
-
getBinary
Description copied from class:UResourceBundleReturns a binary data item from a binary resource, as a read-only ByteBuffer.- Overrides:
getBinaryin classUResourceBundle- Returns:
- a pointer to a chunk of unsigned bytes which live in a memory mapped/DLL file.
- See Also:
-
getBinary
public byte[] getBinary(byte[] ba) Description copied from class:UResourceBundleReturns a binary data from a binary resource, as a byte array with a copy of the bytes from the resource bundle.- Overrides:
getBinaryin classUResourceBundle- Parameters:
ba- The byte array to write the bytes to. A null variable is OK.- Returns:
- an array of bytes containing the binary data from the resource.
- See Also:
-