borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.util 

LocaleUtil class

java.lang.Object
   +----borland.jbcl.util.LocaleUtil

About the LocaleUtil class

Properties  Methods  

Returns the locale identified by a single string with "locale_country_variant" as returned by Locale.toString().


LocaleUtil properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

LocaleUtil methods

Methods implemented in this class

Methods implemented in java.lang.Object


LocaleUtil methods

getLocale(java.lang.String)

  public static Locale getLocale(java.lang.String localeString)
Returns the locale identified by a single string with "locale_country_variant" as returned by Locale.toString. This method may ultimately be replaced by a similar service in the java.util.Locale package.

Parameters:

localeString
A single string containing language, country, and variant, separated by '_'. A null or empty string yields the default locale. The country and variant are optional.