Package com.ibm.icu.impl
Class ICUResourceBundleReader.Table
- java.lang.Object
-
- com.ibm.icu.impl.ICUResourceBundleReader.Container
-
- com.ibm.icu.impl.ICUResourceBundleReader.Table
-
- All Implemented Interfaces:
UResource.Table
- Direct Known Subclasses:
ICUResourceBundleReader.Table16
,ICUResourceBundleReader.Table1632
,ICUResourceBundleReader.Table32
- Enclosing class:
- ICUResourceBundleReader
static class ICUResourceBundleReader.Table extends ICUResourceBundleReader.Container implements UResource.Table
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
key32Offsets
protected char[]
keyOffsets
private static int
URESDATA_ITEM_NOT_FOUND
-
Fields inherited from class com.ibm.icu.impl.ICUResourceBundleReader.Container
itemsOffset, size
-
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
findTableItem(ICUResourceBundleReader reader, java.lang.CharSequence key)
boolean
findValue(java.lang.CharSequence key, UResource.Value value)
(package private) java.lang.String
getKey(ICUResourceBundleReader reader, int index)
boolean
getKeyAndValue(int i, UResource.Key key, UResource.Value value)
(package private) int
getResource(ICUResourceBundleReader reader, java.lang.String resKey)
-
Methods inherited from class com.ibm.icu.impl.ICUResourceBundleReader.Container
getContainer16Resource, getContainer32Resource, getContainerResource, getSize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.icu.impl.UResource.Table
getSize
-
-
-
-
Field Detail
-
keyOffsets
protected char[] keyOffsets
-
key32Offsets
protected int[] key32Offsets
-
URESDATA_ITEM_NOT_FOUND
private static final int URESDATA_ITEM_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
java.lang.String getKey(ICUResourceBundleReader reader, int index)
-
findTableItem
int findTableItem(ICUResourceBundleReader reader, java.lang.CharSequence key)
-
getResource
int getResource(ICUResourceBundleReader reader, java.lang.String resKey)
- Overrides:
getResource
in classICUResourceBundleReader.Container
-
getKeyAndValue
public boolean getKeyAndValue(int i, UResource.Key key, UResource.Value value)
- Specified by:
getKeyAndValue
in interfaceUResource.Table
- Parameters:
i
- Table item index.key
- Output-only, receives the key of the i'th item.value
- Output-only, receives the value of the i'th item.- Returns:
- true if i is non-negative and less than getSize().
-
findValue
public boolean findValue(java.lang.CharSequence key, UResource.Value value)
- Specified by:
findValue
in interfaceUResource.Table
- Parameters:
key
- Key string to find in the table.value
- Output-only, receives the value of the item with that key.- Returns:
- true if the table contains the key.
-
-