Class for enabling iteration over UResourceBundle objects.
Example of use:
ICUResourceBundleIterator iterator = resB.getIterator();
ICUResourceBundle temp;
while (iterator.hasNext()) {
temp = iterartor.next();
int type = temp.getType();
switch(type){
case UResourceBundle.STRING:
str = temp.getString();
break;
case UResourceBundle.INT:
integer = temp.getInt();
break;
.....
}
// do something interesting with data collected
}
author: ram |