|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.util.LocaleUtils
public class LocaleUtils
| Field Summary | |
|---|---|
java.util.List |
installedLocales
|
static java.lang.String |
LANGUAGE_DESCRIPTOR_FILENAME
|
static java.lang.String |
LOCALE_TAG_NAME
|
| Constructor Summary | |
|---|---|
LocaleUtils()
|
|
| Method Summary | |
|---|---|
java.util.List |
getInstalledLocales()
This method locates all installed language bundles that are found on the classpath by looking for LANGUAGE_DESCRIPTOR_FILENAME files on the classpath, and parsing the value of the
LOCALE_TAG_NAME element. |
java.util.Locale |
getLocale(java.lang.String locale)
Creates a locale from the given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LANGUAGE_DESCRIPTOR_FILENAME
public static final java.lang.String LOCALE_TAG_NAME
public java.util.List installedLocales
| Constructor Detail |
|---|
public LocaleUtils()
| Method Detail |
|---|
public java.util.List getInstalledLocales()
throws java.io.IOException
LANGUAGE_DESCRIPTOR_FILENAME files on the classpath, and parsing the value of the
LOCALE_TAG_NAME element.
java.io.IOException - when problems arise retrieving resources from the classpathpublic java.util.Locale getLocale(java.lang.String locale)
locale -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||