Example usage for Java org.apache.commons.lang LocaleUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isAvailableLocale(Locale locale) Checks if the locale specified is in the list of available locales. |
List | localeLookupList(Locale locale) Obtains the list of locales to search through when performing a locale search. localeLookupList(Locale("fr","CA","xxx")) = [Locale("fr","CA","xxx"), Locale("fr","CA"), Locale("fr")] |
List | localeLookupList(Locale locale, Locale defaultLocale) Obtains the list of locales to search through when performing a locale search. localeLookupList(Locale("fr", "CA", "xxx"), Locale("en")) = [Locale("fr","CA","xxx"), Locale("fr","CA"), Locale("fr"), Locale("en"] The result list begins with the most specific locale, then the next more general and so on, finishing with the default locale. |
Locale | toLocale(String str) Converts a String to a Locale. This method takes the string format of a locale and creates the locale object from it. LocaleUtils.toLocale("en") = new Locale("en", "") LocaleUtils.toLocale("en_GB") = new Locale("en", "GB") LocaleUtils.toLocale("en_GB_xxx") = new Locale("en", "GB", "xxx") (#) (#) The behaviour of the JDK variant constructor changed between JDK1.3 and JDK1.4. |