public class LanguageManager extends Object
You need to use LangagueManager.getDefault()
to get
the singleton and then use it to request a Language by "id" via it's
getLanguage()
method.
Modifier and Type | Method and Description |
---|---|
static LanguageManager |
getDefault()
Return the default LanguageManager.
|
Language |
getLanguage(String id)
Return a Language specified by its language ID or
null if
the ID is not known. |
Language |
getLanguageGuess(String fileName,
String contentType)
Get a language based on the filename and content type.
|
public static LanguageManager getDefault()
public Language getLanguage(String id)
null
if
the ID is not known.public Language getLanguageGuess(String fileName, String contentType)