Java Doc for ICUResourceBundle.java in  » Internationalization-Localization » icu4j » com » ibm » icu » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Internationalization Localization » icu4j » com.ibm.icu.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ibm.icu.util.UResourceBundle
   com.ibm.icu.impl.ICUResourceBundle

All known Subclasses:   com.ibm.icu.impl.ICUResourceBundleImpl,
ICUResourceBundle
abstract public class ICUResourceBundle extends UResourceBundle (Code)


Field Summary
final protected static  intALIAS
     Resource type constant for aliases; internally stores a string which identifies the actual resource storing the data (can be in a different resource bundle).
final public static  intARRAY
     Resource type constant for arrays of resources.
final public static  intBINARY
     Resource type constant for binary data.
final public static  intFROM_FALLBACKFROM_ROOTFROM_DEFAULTFROM_LOCALE
    
final public static  StringICU_BASE_NAME
    
final public static  StringICU_BRKITR_BASE_NAME
    
final public static  StringICU_BRKITR_NAME
    
final public static  StringICU_BUNDLE
    
final public static  StringICU_COLLATION_BASE_NAME
    
final public static  ClassLoaderICU_DATA_CLASS_LOADER
    
final protected static  StringICU_DATA_PATH
    
final public static  StringICU_RBNF_BASE_NAME
    
final public static  StringICU_TRANSLIT_BASE_NAME
    
final protected static  StringINSTALLED_LOCALES
    
final public static  intINT
     Resource type constant for a single 28-bit integer, interpreted as signed or unsigned by the getInt() function.
final public static  intINT_VECTOR
     Resource type constant for vectors of 32-bit integers.
final public static  intNONE
     Resource type constant for "no resource".
final protected static  longRES_BOGUS
    
final public static  intSTRING
     Resource type constant for strings.
final public static  intTABLE
     Resource type constant for tables of key-value pairs.
final protected static  intTABLE32
     Internal use only.
final protected static  longUNSIGNED_INT_MASK
    
protected  booleanisTopLevel
    
protected  Stringkey
    
protected  StringresPath
    
protected  longresource
    
protected  intsize
    


Method Summary
public static  ICUResourceBundlecreateBundle(String baseName, String localeID, ClassLoader root)
    
public  booleanequals(Object other)
    
final protected static  ICUResourceBundlefindResourceWithFallback(String path, ICUResourceBundle actualBundle, ICUResourceBundle requested)
    
public  ICUResourceBundleget(int index)
     Returns the resource in a given resource at the specified index.
Parameters:
  index - an index to the wanted resource.
public  ICUResourceBundleget(String key)
     Returns a resource in a given resource that has a given key.
public static  SetgetAvailableLocaleNameSet(String bundlePrefix)
     Return a set of the locale names supported by a collection of resource bundles.
public static  SetgetAvailableLocaleNameSet()
     Return a set of the locale names supported by a collection of resource bundles.
final public static  Locale[]getAvailableLocales(String baseName)
     Get the set of Locales installed in the specified bundles.
final public static  Locale[]getAvailableLocales()
     Get the set of Locales installed the base bundle.
final public static  ULocale[]getAvailableULocales(String baseName)
     Get the set of Locales installed in the specified bundles.
final public static  ULocale[]getAvailableULocales()
     Get the set of ULocales installed the base bundle.
public  ByteBuffergetBinary()
     Returns a binary data from a binary resource.
public  byte[]getBinary(byte[] ba)
     Returns a binary data from a binary resource.
Parameters:
  ba - Establish the return type from this function.
public static  UResourceBundlegetBundleInstance(String baseName, String localeID, ClassLoader root, boolean disableFallback)
    
public static  SetgetFullLocaleNameSet()
     Return a set of all the locale names supported by a collection of resource bundles.
public static  SetgetFullLocaleNameSet(String bundlePrefix)
     Return a set of all the locale names supported by a collection of resource bundles.
final public static  ULocalegetFunctionalEquivalent(String baseName, String resName, String keyword, ULocale locID, boolean fillinIsAvailable)
     Returns a functionally equivalent locale, considering keywords as well, for the specified keyword.
Parameters:
  baseName - resource specifier
Parameters:
  resName - top level resource to consider (such as "collations")
Parameters:
  keyword - a particular keyword to consider (such as "collation" )
Parameters:
  locID - The requested locale
Parameters:
  fillinIsAvailable - If non-null, 1-element array of fillin parameter that indicates whether therequested locale was available.
protected  ICUResourceBundlegetImpl(int index, HashMap table, ICUResourceBundle requested)
    
protected  ICUResourceBundlegetImpl(String key, HashMap table, ICUResourceBundle requested)
    
public  intgetInt()
     Returns a signed integer from a resource.
public  int[]getIntVector()
     Returns a 32 bit integer array from a resource.
public  ICUResourceBundleIteratorgetIterator()
    
public  StringgetKey()
     Returns the key associated with a given resource.
public  EnumerationgetKeys()
    
final public static  String[]getKeywordValues(String baseName, String keyword)
     Given a tree path and keyword, return a string enumeration of all possible values for that keyword.
Parameters:
  baseName - resource specifier
Parameters:
  keyword - a particular keyword to consider, must match a top level resource namewithin the tree.
public  intgetLoadingStatus()
     Returns the loading status of a particular resource.
public  LocalegetLocale()
     Returns the locale of this resource bundle.
abstract protected  StringgetLocaleID()
    
final public static  Locale[]getLocaleList(ULocale[] ulocales)
     Convert a list of ULocales to a list of Locales.
protected  booleangetNoFallback()
     Get the noFallback flag specified in the loaded bundle.
abstract public  UResourceBundlegetParent()
     Returns the parent bundle of this bundle UResourceBundle the parent of this bundle.
public  intgetSize()
     Returns the size of a resource.
public  StringgetString()
    
public  StringgetString(int index)
     Returns the string in a given resource at the specified index.
Parameters:
  index - an index to the wanted string.
public  String[]getStringArray()
    
public  StringgetStringWithFallback(String path)
    
public  intgetType()
     Returns the type of a resource.
public  intgetUInt()
     Returns a unsigned integer from a resource.
public  VersionInfogetVersion()
     Return the version number associated with this UResourceBundle as an VersionInfo object.
public  ICUResourceBundlegetWithFallback(String path)
    
protected  ICUResourceBundlehandleGet(String key, HashMap table, ICUResourceBundle requested)
    
protected  ICUResourceBundlehandleGet(int index, HashMap table, ICUResourceBundle requested)
    
protected  ICUResourceBundlehandleGet(int index, ICUResourceBundle requested)
    
protected  ICUResourceBundlehandleGet(String key, ICUResourceBundle requested)
    
protected  EnumerationhandleGetKeys()
    
protected  ObjecthandleGetObject(String key)
    
protected  String[]handleGetStringArray()
    
protected static synchronized  UResourceBundleinstantiateBundle(String baseName, String localeID, ClassLoader root, boolean disableFallback)
    
public  voidsetLoadingStatus(int newStatus)
    

Field Detail
ALIAS
final protected static int ALIAS(Code)
Resource type constant for aliases; internally stores a string which identifies the actual resource storing the data (can be in a different resource bundle). Resolved internally before delivering the actual resource through the API.



ARRAY
final public static int ARRAY(Code)
Resource type constant for arrays of resources.



BINARY
final public static int BINARY(Code)
Resource type constant for binary data.



FROM_FALLBACKFROM_ROOTFROM_DEFAULTFROM_LOCALE
final public static int FROM_FALLBACKFROM_ROOTFROM_DEFAULTFROM_LOCALE(Code)



ICU_BASE_NAME
final public static String ICU_BASE_NAME(Code)
The base name of ICU data to be used with getBundleInstance API



ICU_BRKITR_BASE_NAME
final public static String ICU_BRKITR_BASE_NAME(Code)
The base name of rbbi data to be used with getBundleInstance API



ICU_BRKITR_NAME
final public static String ICU_BRKITR_NAME(Code)
The base name of rbbi data to be used with getData API



ICU_BUNDLE
final public static String ICU_BUNDLE(Code)
The data path to be used with getBundleInstance API



ICU_COLLATION_BASE_NAME
final public static String ICU_COLLATION_BASE_NAME(Code)
The base name of collation data to be used with getBundleInstance API



ICU_DATA_CLASS_LOADER
final public static ClassLoader ICU_DATA_CLASS_LOADER(Code)
The class loader constant to be used with getBundleInstance API



ICU_DATA_PATH
final protected static String ICU_DATA_PATH(Code)
The data path to be used with getBundleInstance API



ICU_RBNF_BASE_NAME
final public static String ICU_RBNF_BASE_NAME(Code)
The base name of rbnf data to be used with getBundleInstance API



ICU_TRANSLIT_BASE_NAME
final public static String ICU_TRANSLIT_BASE_NAME(Code)
The base name of transliterator data to be used with getBundleInstance API



INSTALLED_LOCALES
final protected static String INSTALLED_LOCALES(Code)
The name of the resource containing the installed locales



INT
final public static int INT(Code)
Resource type constant for a single 28-bit integer, interpreted as signed or unsigned by the getInt() function.
See Also:   ICUResourceBundle.getInt



INT_VECTOR
final public static int INT_VECTOR(Code)
Resource type constant for vectors of 32-bit integers.
See Also:   ICUResourceBundle.getIntVector



NONE
final public static int NONE(Code)
Resource type constant for "no resource".



RES_BOGUS
final protected static long RES_BOGUS(Code)



STRING
final public static int STRING(Code)
Resource type constant for strings.



TABLE
final public static int TABLE(Code)
Resource type constant for tables of key-value pairs.



TABLE32
final protected static int TABLE32(Code)
Internal use only. Alternative resource type constant for tables of key-value pairs. Never returned by getType().



UNSIGNED_INT_MASK
final protected static long UNSIGNED_INT_MASK(Code)



isTopLevel
protected boolean isTopLevel(Code)



key
protected String key(Code)



resPath
protected String resPath(Code)



resource
protected long resource(Code)



size
protected int size(Code)





Method Detail
createBundle
public static ICUResourceBundle createBundle(String baseName, String localeID, ClassLoader root)(Code)



equals
public boolean equals(Object other)(Code)



findResourceWithFallback
final protected static ICUResourceBundle findResourceWithFallback(String path, ICUResourceBundle actualBundle, ICUResourceBundle requested)(Code)



get
public ICUResourceBundle get(int index)(Code)
Returns the resource in a given resource at the specified index.
Parameters:
  index - an index to the wanted resource. the sub resource UResourceBundle object
throws:
  IndexOutOfBoundsException -



get
public ICUResourceBundle get(String key)(Code)
Returns a resource in a given resource that has a given key.
Parameters:
  key - a key associated with the wanted resource a resource bundle object representing rhe resource
throws:
  MissingResourceException -



getAvailableLocaleNameSet
public static Set getAvailableLocaleNameSet(String bundlePrefix)(Code)
Return a set of the locale names supported by a collection of resource bundles.
Parameters:
  bundlePrefix - the prefix of the resource bundles to use.



getAvailableLocaleNameSet
public static Set getAvailableLocaleNameSet()(Code)
Return a set of the locale names supported by a collection of resource bundles.



getAvailableLocales
final public static Locale[] getAvailableLocales(String baseName)(Code)
Get the set of Locales installed in the specified bundles. the list of available locales



getAvailableLocales
final public static Locale[] getAvailableLocales()(Code)
Get the set of Locales installed the base bundle. the list of available locales



getAvailableULocales
final public static ULocale[] getAvailableULocales(String baseName)(Code)
Get the set of Locales installed in the specified bundles. the list of available locales



getAvailableULocales
final public static ULocale[] getAvailableULocales()(Code)
Get the set of ULocales installed the base bundle. the list of available locales



getBinary
public ByteBuffer getBinary()(Code)
Returns a binary data from a binary resource. a pointer to a chuck of unsigned bytes which live in a memory mapped/DLL file.
See Also:   ICUResourceBundle.getIntVector
See Also:   ICUResourceBundle.getInt
throws:
  MissingResourceException -
throws:
  UResourceTypeMismatchException -



getBinary
public byte[] getBinary(byte[] ba)(Code)
Returns a binary data from a binary resource.
Parameters:
  ba - Establish the return type from this function. The value of the parameteris not used; a null variable is OK. The thing that matters is the typeof the parameter an array unsigned bytes containing the binary data from the resource.
See Also:   ICUResourceBundle.getIntVector
See Also:   ICUResourceBundle.getInt
throws:
  MissingResourceException -
throws:
  UResourceTypeMismatchException -



getBundleInstance
public static UResourceBundle getBundleInstance(String baseName, String localeID, ClassLoader root, boolean disableFallback)(Code)



getFullLocaleNameSet
public static Set getFullLocaleNameSet()(Code)
Return a set of all the locale names supported by a collection of resource bundles.



getFullLocaleNameSet
public static Set getFullLocaleNameSet(String bundlePrefix)(Code)
Return a set of all the locale names supported by a collection of resource bundles.
Parameters:
  bundlePrefix - the prefix of the resource bundles to use.



getFunctionalEquivalent
final public static ULocale getFunctionalEquivalent(String baseName, String resName, String keyword, ULocale locID, boolean fillinIsAvailable)(Code)
Returns a functionally equivalent locale, considering keywords as well, for the specified keyword.
Parameters:
  baseName - resource specifier
Parameters:
  resName - top level resource to consider (such as "collations")
Parameters:
  keyword - a particular keyword to consider (such as "collation" )
Parameters:
  locID - The requested locale
Parameters:
  fillinIsAvailable - If non-null, 1-element array of fillin parameter that indicates whether therequested locale was available. The locale is defined as 'available' if it physicallyexists within the specified tree. the locale



getImpl
protected ICUResourceBundle getImpl(int index, HashMap table, ICUResourceBundle requested)(Code)



getImpl
protected ICUResourceBundle getImpl(String key, HashMap table, ICUResourceBundle requested)(Code)



getInt
public int getInt()(Code)
Returns a signed integer from a resource. an integer value
See Also:   ICUResourceBundle.getIntVector
See Also:   ICUResourceBundle.getBinary
throws:
  MissingResourceException -
throws:
  UResourceTypeMismatchException -



getIntVector
public int[] getIntVector()(Code)
Returns a 32 bit integer array from a resource. a pointer to a chunk of unsigned bytes which live in a memory mapped/DLL file.
See Also:   ICUResourceBundle.getBinary
See Also:   ICUResourceBundle.getInt
throws:
  MissingResourceException -
throws:
  UResourceTypeMismatchException -



getIterator
public ICUResourceBundleIterator getIterator()(Code)
Returns the iterator which iterates over this resource bundle



getKey
public String getKey()(Code)
Returns the key associated with a given resource. Not all the resources have a key - only those that are members of a table. a key associated to this resource, or NULL if it doesn't have a key



getKeys
public Enumeration getKeys()(Code)



getKeywordValues
final public static String[] getKeywordValues(String baseName, String keyword)(Code)
Given a tree path and keyword, return a string enumeration of all possible values for that keyword.
Parameters:
  baseName - resource specifier
Parameters:
  keyword - a particular keyword to consider, must match a top level resource namewithin the tree. (i.e. "collations")



getLoadingStatus
public int getLoadingStatus()(Code)
Returns the loading status of a particular resource. FROM_FALLBACK if the resource is fetched from fallback bundleFROM_ROOT if the resource is fetched from root bundle.FROM_DEFAULT if the resource is fetched from the default locale.



getLocale
public Locale getLocale()(Code)
Returns the locale of this resource bundle. This method can be used after a call to getBundle() to determine whether the resource bundle returned really corresponds to the requested locale or is a fallback. the locale of this resource bundle



getLocaleID
abstract protected String getLocaleID()(Code)
Returns the locale id of this bundle as String String locale id



getLocaleList
final public static Locale[] getLocaleList(ULocale[] ulocales)(Code)
Convert a list of ULocales to a list of Locales. ULocales with a script code will not be converted since they cannot be represented as a Locale. This means that the two lists will not match one-to-one, and that the returned list might be shorter than the input list.
Parameters:
  ulocales - a list of ULocales to convert to a list of Locales. the list of converted ULocales



getNoFallback
protected boolean getNoFallback()(Code)
Get the noFallback flag specified in the loaded bundle. The noFallback flag.



getParent
abstract public UResourceBundle getParent()(Code)
Returns the parent bundle of this bundle UResourceBundle the parent of this bundle. Returns null if none



getSize
public int getSize()(Code)
Returns the size of a resource. Size for scalar types is always 1, and for vector/table types is the number of child resources.
Warning: 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. number of resources in a given resource.



getString
public String getString()(Code)
Returns a string from a string resource type a string
See Also:   ICUResourceBundle.getBinary
See Also:   ICUResourceBundle.getIntVector
See Also:   ICUResourceBundle.getInt
throws:
  MissingResourceException -
throws:
  UResourceTypeMismatchException -



getString
public String getString(int index)(Code)
Returns the string in a given resource at the specified index.
Parameters:
  index - an index to the wanted string. a string which lives in the resource.
throws:
  IndexOutOfBoundsException -
throws:
  UResourceTypeMismatchException -



getStringArray
public String[] getStringArray()(Code)



getStringWithFallback
public String getStringWithFallback(String path) throws MissingResourceException(Code)



getType
public int getType()(Code)
Returns the type of a resource. Available types are ICUResourceBundle.INT INT , ICUResourceBundle.ARRAY ARRAY , ICUResourceBundle.BINARY BINARY , ICUResourceBundle.INT_VECTOR INT_VECTOR , ICUResourceBundle.STRING STRING , ICUResourceBundle.TABLE TABLE . type of the given resource.



getUInt
public int getUInt()(Code)
Returns a unsigned integer from a resource. This integer is originally 28 bit and the sign gets propagated. an integer value
See Also:   ICUResourceBundle.getIntVector
See Also:   ICUResourceBundle.getBinary
throws:
  MissingResourceException -
throws:
  UResourceTypeMismatchException -



getVersion
public VersionInfo getVersion()(Code)
Return the version number associated with this UResourceBundle as an VersionInfo object. VersionInfo object containing the version of the bundle



getWithFallback
public ICUResourceBundle getWithFallback(String path) throws MissingResourceException(Code)
This method performs multilevel fallback for fetching items from the bundle e.g: If resource is in the form de__PHONEBOOK{ collations{ default{ "phonebook"} } } If the value of "default" key needs to be accessed, then do: UResourceBundle bundle = UResourceBundle.getBundleInstance("de__PHONEBOOK"); ICUResourceBundle result = null; if(bundle instanceof ICUListResourceBundle){ result = ((ICUListResourceBundle) bundle).getWithFallback("collations/default"); }
Parameters:
  path - The path to the required resource key resource represented by the key
exception:
  MissingResourceException -



handleGet
protected ICUResourceBundle handleGet(String key, HashMap table, ICUResourceBundle requested)(Code)



handleGet
protected ICUResourceBundle handleGet(int index, HashMap table, ICUResourceBundle requested)(Code)



handleGet
protected ICUResourceBundle handleGet(int index, ICUResourceBundle requested)(Code)



handleGet
protected ICUResourceBundle handleGet(String key, ICUResourceBundle requested)(Code)



handleGetKeys
protected Enumeration handleGetKeys()(Code)



handleGetObject
protected Object handleGetObject(String key)(Code)



handleGetStringArray
protected String[] handleGetStringArray()(Code)



instantiateBundle
protected static synchronized UResourceBundle instantiateBundle(String baseName, String localeID, ClassLoader root, boolean disableFallback)(Code)



setLoadingStatus
public void setLoadingStatus(int newStatus)(Code)



Methods inherited from com.ibm.icu.util.UResourceBundle
protected static synchronized void addToCache(ClassLoader cl, String fullName, ULocale defaultLocale, UResourceBundle b)(Code)(Java Doc)
abstract protected String getBaseName()(Code)(Java Doc)
public static UResourceBundle getBundleInstance(String baseName, String localeName)(Code)(Java Doc)
public static UResourceBundle getBundleInstance(String baseName, String localeName, ClassLoader root)(Code)(Java Doc)
protected static UResourceBundle getBundleInstance(String baseName, String localeName, ClassLoader root, boolean disableFallback)(Code)(Java Doc)
public static UResourceBundle getBundleInstance(ULocale locale)(Code)(Java Doc)
public static UResourceBundle getBundleInstance(String baseName)(Code)(Java Doc)
public static UResourceBundle getBundleInstance(String baseName, Locale locale)(Code)(Java Doc)
public static UResourceBundle getBundleInstance(String baseName, ULocale locale)(Code)(Java Doc)
public static UResourceBundle getBundleInstance(String baseName, Locale locale, ClassLoader loader)(Code)(Java Doc)
public static UResourceBundle getBundleInstance(String baseName, ULocale locale, ClassLoader loader)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
abstract protected String getLocaleID()(Code)(Java Doc)
abstract protected UResourceBundle getParent()(Code)(Java Doc)
abstract public ULocale getULocale()(Code)(Java Doc)
protected static synchronized UResourceBundle instantiateBundle(String baseName, String localeName, ClassLoader root, boolean disableFallback)(Code)(Java Doc)
protected static synchronized UResourceBundle loadFromCache(ClassLoader cl, String fullName, ULocale defaultLocale)(Code)(Java Doc)
abstract protected void setLoadingStatus(int newStatus)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.