public class LanguageUtils
extends java.lang.Object
Constructor and Description |
---|
LanguageUtils() |
Modifier and Type | Method and Description |
---|---|
static Language |
getLanguage()
Load language settings from config file.
|
static java.io.InputStream |
openConfigFile()
Open config file and return his input stream
|
static java.io.InputStream |
openLangFile(Language lang)
Open specific language file.
|
static void |
writeConfigFile(java.lang.String property,
java.lang.String value)
Write specific setting option to config file.
|
public static java.io.InputStream openLangFile(Language lang) throws java.io.FileNotFoundException
lang
- Language
- specific languagejava.io.FileNotFoundException
- - file doesn't existpublic static java.io.InputStream openConfigFile() throws java.io.FileNotFoundException
java.io.FileNotFoundException
- - file doesn't existpublic static Language getLanguage() throws java.io.IOException
Language
.java.io.IOException
- - exceptions in filepublic static void writeConfigFile(java.lang.String property, java.lang.String value) throws java.io.IOException
property
- String - specific setting idvalue
- String - specific setting valuejava.io.IOException
- - file exceptions