Package com.ibm.icu.impl
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
private static final class ICUResourceBundleImpl.ResourceBinary extends ICUResourceBundleImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.icu.impl.ICUResourceBundleImpl
ICUResourceBundleImpl.ResourceArray, ICUResourceBundleImpl.ResourceContainer, ICUResourceBundleImpl.ResourceTable
-
Nested classes/interfaces inherited from class com.ibm.icu.impl.ICUResourceBundle
ICUResourceBundle.OpenType, ICUResourceBundle.WholeBundle
-
-
Field Summary
-
Fields inherited from class com.ibm.icu.impl.ICUResourceBundleImpl
resource
-
Fields inherited from class com.ibm.icu.impl.ICUResourceBundle
ALIAS, ARRAY16, ICU_DATA_CLASS_LOADER, INSTALLED_LOCALES, key, NO_INHERITANCE_MARKER, RES_BOGUS, STRING_V2, TABLE16, TABLE32, wholeBundle
-
Fields inherited from class com.ibm.icu.util.UResourceBundle
ARRAY, BINARY, INT, INT_VECTOR, NONE, STRING, TABLE
-
-
Constructor Summary
Constructors Constructor Description ResourceBinary(ICUResourceBundleImpl container, java.lang.String key, int resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
getBinary()
Returns 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.int
getType()
Returns the type of a resource.-
Methods inherited from class com.ibm.icu.impl.ICUResourceBundleImpl
createBundleObject, getResource
-
Methods inherited from class com.ibm.icu.impl.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, setTopLevelKeySet
-
Methods inherited from class com.ibm.icu.util.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, keySet
-
-
-
-
Constructor Detail
-
ResourceBinary
ResourceBinary(ICUResourceBundleImpl container, java.lang.String key, int resource)
-
-
Method Detail
-
getType
public int getType()
Description copied from class:UResourceBundle
- Overrides:
getType
in classUResourceBundle
- Returns:
- type of the given resource.
-
getBinary
public java.nio.ByteBuffer getBinary()
Description copied from class:UResourceBundle
Returns a binary data item from a binary resource, as a read-only ByteBuffer.- Overrides:
getBinary
in classUResourceBundle
- Returns:
- a pointer to a chunk of unsigned bytes which live in a memory mapped/DLL file.
- See Also:
UResourceBundle.getIntVector()
,UResourceBundle.getInt()
-
getBinary
public byte[] getBinary(byte[] ba)
Description copied from class:UResourceBundle
Returns a binary data from a binary resource, as a byte array with a copy of the bytes from the resource bundle.- Overrides:
getBinary
in 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:
UResourceBundle.getIntVector()
,UResourceBundle.getInt()
-
-