org.geotools.resources.i18n
Class Locales

java.lang.Object
  extended by org.geotools.resources.i18n.Locales

public final class Locales
extends java.lang.Object

Static i18n methods.

Since:
2.4
Version:
$Id: Locales.java 31007 2008-07-11 17:33:53Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
static java.util.Locale[] getAvailableLanguages()
          Returns available languages.
static java.util.Locale[] getAvailableLocales()
          Returns the list of available locales.
static java.lang.String[] getAvailableLocales(java.util.Locale locale)
          Returns the list of available locales formatted as string in the specified locale.
static void main(java.lang.String[] args)
          Prints the list of available locales.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAvailableLanguages

public static java.util.Locale[] getAvailableLanguages()
Returns available languages.

Returns:
Available languages.

getAvailableLocales

public static java.util.Locale[] getAvailableLocales()
Returns the list of available locales.

Returns:
Available locales.

getAvailableLocales

public static java.lang.String[] getAvailableLocales(java.util.Locale locale)
Returns the list of available locales formatted as string in the specified locale.

Parameters:
locale - The locale to use for formatting the strings to be returned.
Returns:
String descriptions of available locales.

main

public static void main(java.lang.String[] args)
Prints the list of available locales.

Parameters:
args - Command-lines arguments.


Copyright © 1996-2010 Geotools. All Rights Reserved.