Top Inners Fields Constructors Methods
com.ibm.icu.impl

pack-priv Class ICUResourceBundleImpl

extends ICUResourceBundle
Class Inheritance
Known Direct Subclasses
com.ibm.icu.impl.ICUResourceBundleImpl.ResourceBinary, com.ibm.icu.impl.ICUResourceBundleImpl.ResourceInt, com.ibm.icu.impl.ICUResourceBundleImpl.ResourceString, com.ibm.icu.impl.ICUResourceBundleImpl.ResourceIntVector, com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer
Imports
java.nio.ByteBuffer, java.util.HashMap, .Set, .TreeSet, com.ibm.icu.util.UResourceBundle, .UResourceTypeMismatchException

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
private static class
pack-priv abstract static class
private static class
private static class
private static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
protected int
Inherited from com.ibm.icu.impl.ICUResourceBundle:
ALIASARRAY16ICU_DATA_CLASS_LOADERINSTALLED_LOCALESkeyNO_INHERITANCE_MARKERRES_BOGUSSTRING_V2TABLE16TABLE32wholeBundle

Constructor Summary

AccessConstructor and Description
protected
ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource)

pack-priv

Method Summary

Modifier and TypeMethod and Description
protected final ICUResourceBundle
createBundleObject(String _key, int _resource, HashMap<String, String> aliasesVisited, UResourceBundle requested)

public int
Inherited from com.ibm.icu.impl.ICUResourceBundle:
atatcreateBundleequalsfindStringWithFallbackfindTopLevelfindTopLevelfindWithFallbackgetgetAliasedResourcegetAliasedResourcegetAllChildrenWithFallbackgetAllItemsWithFallbackgetAllItemsWithFallbackNoFailgetAvailableLocaleNameSetgetAvailableLocaleNameSetgetAvailableLocalesgetAvailableLocalesgetAvailableLocalesgetAvailableLocalesgetAvailableULocalesgetAvailableULocalesgetAvailableULocalesgetAvailableULocalesgetBaseNamegetBundleInstancegetBundleInstancegetBundleInstancegetFullLocaleNameSetgetFullLocaleNameSetgetFunctionalEquivalentgetKeygetKeywordValuesgetLocalegetLocaleIDgetLocaleListgetParentgetParentLocaleIDgetStringWithFallbackgetTopLevelKeySetgetULocalegetValueWithFallbackgetWithFallbackhandleGetKeyshashCodeisRootisTopLevelResourcesetParentsetTopLevelKeySet

Field Detail

resourceback to summary
protected int resource

Constructor Detail

ICUResourceBundleImplback to summary
protected ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource)
ICUResourceBundleImplback to summary
pack-priv ICUResourceBundleImpl(ICUResourceBundle.WholeBundle wholeBundle)

Method Detail

createBundleObjectback to summary
protected final ICUResourceBundle createBundleObject(String _key, int _resource, HashMap<String, String> aliasesVisited, UResourceBundle requested)
getResourceback to summary
public int getResource()
com.ibm.icu.impl back to summary

pack-priv Class ICUResourceBundleImpl.ResourceArray

extends ResourceContainer
Class Inheritance

Field Summary

Inherited from com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer:
value

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceArray(ICUResourceBundleImpl container, String key, int resource)

Method Summary

Modifier and TypeMethod and Description
public String[]
getStringArray()

Overrides com.ibm.icu.util.UResourceBundle.getStringArray.

Returns a string array from a array resource type
public int
protected UResourceBundle
handleGet(String
the key string of the resource to be fetched
indexStr
,
HashMap<String, String>
hashtable object to hold references of resources already seen
aliasesVisited
,
UResourceBundle
the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
requested
)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

ICU

protected UResourceBundle
handleGet(int
the index of the resource to be fetched
index
,
HashMap<String, String>
hashtable object to hold references of resources already seen
aliasesVisited
,
UResourceBundle
the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
requested
)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

ICU

protected String[]
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer:
createBundleObjectgetContainerResourcegetSizegetString

Constructor Detail

ResourceArrayback to summary
pack-priv ResourceArray(ICUResourceBundleImpl container, String key, int resource)

Method Detail

getStringArrayback to summary
public String[] getStringArray()

Overrides com.ibm.icu.util.UResourceBundle.getStringArray.

Doc from com.ibm.icu.util.UResourceBundle.getStringArray.

Returns a string array from a array resource type

Returns:String[]

a string

Annotations
@Override
getTypeback to summary
public int getType()

Overrides com.ibm.icu.util.UResourceBundle.getType.

Doc from com.ibm.icu.util.UResourceBundle.getType.

ICU

Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
Returns:int

type of the given resource.

Annotations
@Override
handleGetback to summary
protected UResourceBundle handleGet(String indexStr, HashMap<String, String> aliasesVisited, UResourceBundle requested)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

Doc from com.ibm.icu.util.UResourceBundle.handleGet.

ICU

Actual worker method for fetching a resource based on the given key. Sub classes must override this method if they support resources with keys.
Parameters
indexStr:String

the key string of the resource to be fetched

aliasesVisited:HashMap<String, String>

hashtable object to hold references of resources already seen

requested:UResourceBundle

the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.

Returns:UResourceBundle

UResourceBundle a resource associated with the key

Annotations
@Override
handleGetback to summary
protected UResourceBundle handleGet(int index, HashMap<String, String> aliasesVisited, UResourceBundle requested)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

Doc from com.ibm.icu.util.UResourceBundle.handleGet.

ICU

Actual worker method for fetching a resource based on the given index. Sub classes must override this method if they support arrays of resources.
Parameters
index:int

the index of the resource to be fetched

aliasesVisited:HashMap<String, String>

hashtable object to hold references of resources already seen

requested:UResourceBundle

the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.

Returns:UResourceBundle

UResourceBundle a resource associated with the index

Annotations
@Override
handleGetStringArrayback to summary
protected String[] handleGetStringArray()

Overrides com.ibm.icu.util.UResourceBundle.handleGetStringArray.

Doc from com.ibm.icu.util.UResourceBundle.handleGetStringArray.

ICU

Actual worker method for fetching the array of strings in a resource. Sub classes must override this method if they support arrays of strings.
Returns:String[]

String[] An array of strings containing strings

Annotations
@Override
com.ibm.icu.impl back to summary

private final Class ICUResourceBundleImpl.ResourceBinary

extends ICUResourceBundleImpl
Class Inheritance

Field Summary

Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
resource

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceBinary(ICUResourceBundleImpl container, String key, int resource)

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
public byte[]
getBinary(byte[]
The byte array to write the bytes to. A null variable is OK.
ba
)

Overrides com.ibm.icu.util.UResourceBundle.getBinary.

ICU

public int
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
createBundleObjectgetResource

Constructor Detail

ResourceBinaryback to summary
pack-priv ResourceBinary(ICUResourceBundleImpl container, String key, int resource)

Method Detail

getBinaryback to summary
public ByteBuffer getBinary()

Overrides com.ibm.icu.util.UResourceBundle.getBinary.

Doc from com.ibm.icu.util.UResourceBundle.getBinary.

ICU

Returns a binary data item from a binary resource, as a read-only ByteBuffer.
Returns:ByteBuffer

a pointer to a chunk of unsigned bytes which live in a memory mapped/DLL file.

Annotations
@Override
getBinaryback to summary
public byte[] getBinary(byte[] ba)

Overrides com.ibm.icu.util.UResourceBundle.getBinary.

Doc from com.ibm.icu.util.UResourceBundle.getBinary.

ICU

Returns a binary data from a binary resource, as a byte array with a copy of the bytes from the resource bundle.
Parameters
ba:byte[]

The byte array to write the bytes to. A null variable is OK.

Returns:byte[]

an array of bytes containing the binary data from the resource.

Annotations
@Override
getTypeback to summary
public int getType()

Overrides com.ibm.icu.util.UResourceBundle.getType.

Doc from com.ibm.icu.util.UResourceBundle.getType.

ICU

Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
Returns:int

type of the given resource.

Annotations
@Override
com.ibm.icu.impl back to summary

pack-priv abstract Class ICUResourceBundleImpl.ResourceContainer

extends ICUResourceBundleImpl
Class Inheritance
Known Direct Subclasses
com.ibm.icu.impl.ICUResourceBundleImpl.ResourceArray, com.ibm.icu.impl.ICUResourceBundleImpl.ResourceTable

Field Summary

Modifier and TypeField and Description
protected ICUResourceBundleReader.Container
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
resource

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceContainer(ICUResourceBundleImpl container, String key, int resource)

pack-priv

Method Summary

Modifier and TypeMethod and Description
protected UResourceBundle
createBundleObject(int index, String resKey, HashMap<String, String> aliasesVisited, UResourceBundle requested)

protected int
public int
public String
getString(int
an index to the wanted string.
index
)

Overrides com.ibm.icu.util.UResourceBundle.getString.

Returns the string in a given resource at the specified index.
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
createBundleObjectgetResource

Field Detail

valueback to summary
protected ICUResourceBundleReader.Container value

Constructor Detail

ResourceContainerback to summary
pack-priv ResourceContainer(ICUResourceBundleImpl container, String key, int resource)
ResourceContainerback to summary
pack-priv ResourceContainer(ICUResourceBundle.WholeBundle wholeBundle)

Method Detail

createBundleObjectback to summary
protected UResourceBundle createBundleObject(int index, String resKey, HashMap<String, String> aliasesVisited, UResourceBundle requested)
getContainerResourceback to summary
protected int getContainerResource(int index)
getSizeback to summary
public int getSize()

Overrides com.ibm.icu.util.UResourceBundle.getSize.

Doc from com.ibm.icu.util.UResourceBundle.getSize.

ICU

Returns the size of a resource. Size for scalar types is always 1, and for vector/table types is the number of child resources

Note

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.

Returns:int

number of resources in a given resource.

Annotations
@Override
getStringback to summary
public String getString(int index)

Overrides com.ibm.icu.util.UResourceBundle.getString.

Doc from com.ibm.icu.util.UResourceBundle.getString.

Returns the string in a given resource at the specified index.

Parameters
index:int

an index to the wanted string.

Returns:String

a string which lives in the resource.

Annotations
@Override
com.ibm.icu.impl back to summary

private final Class ICUResourceBundleImpl.ResourceInt

extends ICUResourceBundleImpl
Class Inheritance

Field Summary

Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
resource

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceInt(ICUResourceBundleImpl container, String key, int resource)

Method Summary

Modifier and TypeMethod and Description
public int
public int
public int
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
createBundleObjectgetResource

Constructor Detail

ResourceIntback to summary
pack-priv ResourceInt(ICUResourceBundleImpl container, String key, int resource)

Method Detail

getIntback to summary
public int getInt()

Overrides com.ibm.icu.util.UResourceBundle.getInt.

Doc from com.ibm.icu.util.UResourceBundle.getInt.

ICU

Returns a signed integer from a resource.
Returns:int

an integer value

Annotations
@Override
getTypeback to summary
public int getType()

Overrides com.ibm.icu.util.UResourceBundle.getType.

Doc from com.ibm.icu.util.UResourceBundle.getType.

ICU

Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
Returns:int

type of the given resource.

Annotations
@Override
getUIntback to summary
public int getUInt()

Overrides com.ibm.icu.util.UResourceBundle.getUInt.

Doc from com.ibm.icu.util.UResourceBundle.getUInt.

ICU

Returns a unsigned integer from a resource. This integer is originally 28 bit and the sign gets propagated.
Returns:int

an integer value

Annotations
@Override
com.ibm.icu.impl back to summary

private final Class ICUResourceBundleImpl.ResourceIntVector

extends ICUResourceBundleImpl
Class Inheritance

Field Summary

Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
resource

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceIntVector(ICUResourceBundleImpl container, String key, int resource)

Method Summary

Modifier and TypeMethod and Description
public int[]
public int
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
createBundleObjectgetResource

Constructor Detail

ResourceIntVectorback to summary
pack-priv ResourceIntVector(ICUResourceBundleImpl container, String key, int resource)

Method Detail

getIntVectorback to summary
public int[] getIntVector()

Overrides com.ibm.icu.util.UResourceBundle.getIntVector.

Doc from com.ibm.icu.util.UResourceBundle.getIntVector.

ICU

Returns a 32 bit integer array from a resource.
Returns:int[]

a pointer to a chunk of unsigned bytes which live in a memory mapped/DLL file.

Annotations
@Override
getTypeback to summary
public int getType()

Overrides com.ibm.icu.util.UResourceBundle.getType.

Doc from com.ibm.icu.util.UResourceBundle.getType.

ICU

Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
Returns:int

type of the given resource.

Annotations
@Override
com.ibm.icu.impl back to summary

private final Class ICUResourceBundleImpl.ResourceString

extends ICUResourceBundleImpl
Class Inheritance

Field Summary

Modifier and TypeField and Description
private String
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
resource

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceString(ICUResourceBundleImpl container, String key, int resource)

Method Summary

Modifier and TypeMethod and Description
public String
getString()

Overrides com.ibm.icu.util.UResourceBundle.getString.

Returns a string from a string resource type
public int
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl:
createBundleObjectgetResource

Field Detail

valueback to summary
private String value

Constructor Detail

ResourceStringback to summary
pack-priv ResourceString(ICUResourceBundleImpl container, String key, int resource)

Method Detail

getStringback to summary
public String getString()

Overrides com.ibm.icu.util.UResourceBundle.getString.

Doc from com.ibm.icu.util.UResourceBundle.getString.

Returns a string from a string resource type

Returns:String

a string

Annotations
@Override
getTypeback to summary
public int getType()

Overrides com.ibm.icu.util.UResourceBundle.getType.

Doc from com.ibm.icu.util.UResourceBundle.getType.

ICU

Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
Returns:int

type of the given resource.

Annotations
@Override
com.ibm.icu.impl back to summary

pack-priv Class ICUResourceBundleImpl.ResourceTable

extends ResourceContainer
Class Inheritance

Field Summary

Inherited from com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer:
value

Constructor Summary

AccessConstructor and Description
pack-priv
ResourceTable(ICUResourceBundleImpl container, String key, int resource)

pack-priv
ResourceTable(ICUResourceBundle.WholeBundle wholeBundle, int rootRes)

Constructor for the root table of a bundle.

Method Summary

Modifier and TypeMethod and Description
pack-priv String
findString(String key)

Returns a String if found, or null if not found or if the key item is not a string.

protected String
getKey(int index)

public int
protected UResourceBundle
handleGet(String
the key string of the resource to be fetched
resKey
,
HashMap<String, String>
hashtable object to hold references of resources already seen
aliasesVisited
,
UResourceBundle
the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
requested
)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

ICU

protected UResourceBundle
handleGet(int
the index of the resource to be fetched
index
,
HashMap<String, String>
hashtable object to hold references of resources already seen
aliasesVisited
,
UResourceBundle
the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.
requested
)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

ICU

protected Object
handleGetObject(String
the key for the desired object
key
)

Overrides com.ibm.icu.util.UResourceBundle.handleGetObject.

Gets an object for the given key from this resource bundle.
protected Set<String>
handleKeySet()

Overrides com.ibm.icu.util.UResourceBundle.handleKeySet.

Returns a Set of the keys contained only in this ResourceBundle.
Inherited from com.ibm.icu.impl.ICUResourceBundleImpl.ResourceContainer:
createBundleObjectgetContainerResourcegetSizegetString

Constructor Detail

ResourceTableback to summary
pack-priv ResourceTable(ICUResourceBundleImpl container, String key, int resource)
ResourceTableback to summary
pack-priv ResourceTable(ICUResourceBundle.WholeBundle wholeBundle, int rootRes)

Constructor for the root table of a bundle.

Method Detail

findStringback to summary
pack-priv String findString(String key)

Returns a String if found, or null if not found or if the key item is not a string.

getKeyback to summary
protected String getKey(int index)
getTypeback to summary
public int getType()

Overrides com.ibm.icu.util.UResourceBundle.getType.

Doc from com.ibm.icu.util.UResourceBundle.getType.

ICU

Returns the type of a resource. Available types are INT, ARRAY, BINARY, INT_VECTOR, STRING, TABLE.
Returns:int

type of the given resource.

Annotations
@Override
handleGetback to summary
protected UResourceBundle handleGet(String resKey, HashMap<String, String> aliasesVisited, UResourceBundle requested)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

Doc from com.ibm.icu.util.UResourceBundle.handleGet.

ICU

Actual worker method for fetching a resource based on the given key. Sub classes must override this method if they support resources with keys.
Parameters
resKey:String

the key string of the resource to be fetched

aliasesVisited:HashMap<String, String>

hashtable object to hold references of resources already seen

requested:UResourceBundle

the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.

Returns:UResourceBundle

UResourceBundle a resource associated with the key

Annotations
@Override
handleGetback to summary
protected UResourceBundle handleGet(int index, HashMap<String, String> aliasesVisited, UResourceBundle requested)

Overrides com.ibm.icu.util.UResourceBundle.handleGet.

Doc from com.ibm.icu.util.UResourceBundle.handleGet.

ICU

Actual worker method for fetching a resource based on the given index. Sub classes must override this method if they support arrays of resources.
Parameters
index:int

the index of the resource to be fetched

aliasesVisited:HashMap<String, String>

hashtable object to hold references of resources already seen

requested:UResourceBundle

the original resource bundle object on which the get method was invoked. The requested bundle and the bundle on which this method is invoked are the same, except in the cases where aliases are involved.

Returns:UResourceBundle

UResourceBundle a resource associated with the index

Annotations
@Override
handleGetObjectback to summary
protected Object handleGetObject(String key)

Overrides com.ibm.icu.util.UResourceBundle.handleGetObject.

Doc from com.ibm.icu.util.UResourceBundle.handleGetObject.

Gets an object for the given key from this resource bundle. Returns null if this resource bundle does not contain an object for the given key.

Parameters
key:String

Doc from java.util.ResourceBundle.handleGetObject.

the key for the desired object

Returns:Object

Doc from java.util.ResourceBundle.handleGetObject.

the object for the given key, or null

Annotations
@Override
handleKeySetback to summary
protected Set<String> handleKeySet()

Overrides com.ibm.icu.util.UResourceBundle.handleKeySet.

Doc from com.ibm.icu.util.UResourceBundle.handleKeySet.

Returns a Set of the keys contained only in this ResourceBundle. This does not include further keys from parent bundles.

Returns:Set<String>

a Set of the keys contained only in this ResourceBundle, which is empty if this is not a bundle or a table resource

Annotations
@Override