| java.lang.Object com.ibm.icu.impl.ICULocaleData
ICULocaleData | public class ICULocaleData (Code) | | Provides information about and access to resource bundles in the
com.ibm.text.resources package. Unlike the java version, this does
not include resources from any other location. In particular, it
does not look in the boot or system class path.
|
Method Summary | |
public static ResourceBundle | getLocaleElements(ULocale locale) Creates a LocaleElements resource bundle for the given locale
in the default ICU package. | public static ResourceBundle | getLocaleElements(String localeName) Creates a LocaleElements resource bundle for the given locale
in the default ICU package.
Parameters: localeName - the string name of the locale of the bundleto retrieve, e.g., "en_US". | public static ResourceBundle | getResourceBundle(String bundleName, String localeName) Creates a resource bundle for the given base name and locale
in the default ICU package.
Parameters: bundleName - the base name of the bundle to retrieve,e.g. | public static ResourceBundle | getResourceBundle(String bundleName, ULocale locale) Creates a resource bundle for the given base name and locale
in the default ICU package.
Parameters: bundleName - the base name of the bundle to retrieve,e.g. | public static ResourceBundle | getResourceBundle(String packageName, String bundleName, String localeName) Creates a resource bundle for the given package, base name, and
locale.
Parameters: packageName - a package name, e.g., "com.ibm.icu.impl.data". Parameters: bundleName - the base name of the bundle to retrieve,e.g. | public static ResourceBundle | getResourceBundle(String[] packages, String bundleName, String localeName) Creates a resource bundle for the given base name and locale in
one of the given packages, trying each package in order.
Parameters: packages - a list of one or more package names Parameters: bundleName - the base name of the bundle to retrieve,e.g. | public static ResourceBundle | loadResourceBundle(String bundleName, ULocale locale) Get a resource bundle from the resource bundle path. | public static ResourceBundle | loadResourceBundle(String bundleName, String localeName) Get a resource bundle from the resource bundle path. |
LOCALE_ELEMENTS | final static String LOCALE_ELEMENTS(Code) | | The base name (bundle name) for ICU locale data.
|
getLocaleElements | public static ResourceBundle getLocaleElements(ULocale locale)(Code) | | Creates a LocaleElements resource bundle for the given locale
in the default ICU package.
Parameters: locale - the locale of the bundle to retrieve, ornull to use the default locale a ResourceBundle for the LocaleElements of the givenlocale, or null on failure |
getLocaleElements | public static ResourceBundle getLocaleElements(String localeName)(Code) | | Creates a LocaleElements resource bundle for the given locale
in the default ICU package.
Parameters: localeName - the string name of the locale of the bundleto retrieve, e.g., "en_US". a ResourceBundle for the LocaleElements of the givenlocale, or null on failure |
getResourceBundle | public static ResourceBundle getResourceBundle(String bundleName, String localeName)(Code) | | Creates a resource bundle for the given base name and locale
in the default ICU package.
Parameters: bundleName - the base name of the bundle to retrieve,e.g. "LocaleElements". Parameters: localeName - the string name of the locale of the bundleto retrieve, e.g. "en_US". a ResourceBundle with the given base name for the givenlocale, or null on failure |
getResourceBundle | public static ResourceBundle getResourceBundle(String bundleName, ULocale locale)(Code) | | Creates a resource bundle for the given base name and locale
in the default ICU package.
Parameters: bundleName - the base name of the bundle to retrieve,e.g. "LocaleElements". Parameters: locale - the locale of the bundle to retrieve, ornull to use the default locale a ResourceBundle with the given base name for the givenlocale, or null on failure |
getResourceBundle | public static ResourceBundle getResourceBundle(String packageName, String bundleName, String localeName)(Code) | | Creates a resource bundle for the given package, base name, and
locale.
Parameters: packageName - a package name, e.g., "com.ibm.icu.impl.data". Parameters: bundleName - the base name of the bundle to retrieve,e.g. "LocaleElements". Parameters: localeName - the string name of the locale of the bundleto retrieve, e.g. "en_US". the first ResourceBundle with the given base name forthe given locale found in each of the packages, or null onfailure |
getResourceBundle | public static ResourceBundle getResourceBundle(String[] packages, String bundleName, String localeName)(Code) | | Creates a resource bundle for the given base name and locale in
one of the given packages, trying each package in order.
Parameters: packages - a list of one or more package names Parameters: bundleName - the base name of the bundle to retrieve,e.g. "LocaleElements". Parameters: localeName - the string name of the locale of the bundleto retrieve, e.g. "en_US". the first ResourceBundle with the given base name forthe given locale found in each of the packages, or null onfailure |
loadResourceBundle | public static ResourceBundle loadResourceBundle(String bundleName, ULocale locale)(Code) | | Get a resource bundle from the resource bundle path. Unlike getResourceBundle, this
returns an 'unparented' bundle that exactly matches the bundle name and locale name.
|
loadResourceBundle | public static ResourceBundle loadResourceBundle(String bundleName, String localeName)(Code) | | Get a resource bundle from the resource bundle path. Unlike getResourceBundle, this
returns an 'unparented' bundle that exactly matches the bundle name and locale name.
|
|
|