|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.codec.language.bm.Languages
public class Languages
Language codes.
Language codes are typically loaded from resource files. These are UTF-8 encoded text files. They are systematically named following the pattern:
org/apache/commons/codec/language/bm/${NameType.getName()
languages.txt
The format of these resources is the following:
Ported from language.php
This class is immutable and thread-safe.
Nested Class Summary | |
---|---|
static class |
Languages.LanguageSet
A set of languages. |
static class |
Languages.SomeLanguages
Some languages, explicitly enumerated. |
Field Summary | |
---|---|
static String |
ANY
|
static Languages.LanguageSet |
ANY_LANGUAGE
Any/all languages. |
static Languages.LanguageSet |
NO_LANGUAGES
No languages at all. |
Method Summary | |
---|---|
static Languages |
getInstance(NameType nameType)
|
static Languages |
getInstance(String languagesResourceName)
|
Set<String> |
getLanguages()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ANY
public static final Languages.LanguageSet NO_LANGUAGES
public static final Languages.LanguageSet ANY_LANGUAGE
Method Detail |
---|
public static Languages getInstance(NameType nameType)
public static Languages getInstance(String languagesResourceName)
public Set<String> getLanguages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |