|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.common.intl.IntlResourceManager
Title: OpenMobileIS project source
Description: Manage international resource.
Field Summary | |
static java.lang.String |
BE
Belgium local extension :be |
static java.lang.String |
DE
Deutchland local extension :de |
static java.lang.String |
DEFAULT
default extension extension : nothing |
static java.lang.String |
EN
England local extension :en |
static java.lang.String |
ES
Espana local extension :es |
static java.lang.String |
FR
France local extension :fr |
static java.lang.String |
IT
Italian local extension :it |
static java.lang.String |
SW
Switzerland local extension :sw |
static java.lang.String |
US
United State local extension :us |
Method Summary | |
void |
addLocalizedProperties(java.lang.String propertiesFile,
java.lang.String local)
load the properties file with specified locale in the IntlResourceManager properties . |
java.lang.String |
getLocalizedFileName(java.lang.String fileName,
boolean force)
return the fileName transformed with the system local. |
java.lang.String |
getLocalizedProperty(java.lang.String propKey)
|
java.lang.String |
getLocalizedProperty(java.lang.String propKey,
java.lang.String defaultValue)
|
static IntlResourceManager |
getManager()
|
java.util.Locale |
getManagerLocale()
|
java.lang.String |
getManagerLocaleString()
return the local defined in the webserver property server.locale. |
java.lang.String |
getSystemDefaultLocale()
|
java.lang.String |
getUserLocale()
|
java.util.Properties |
loadLocalizedProperties(java.lang.String fileName,
java.lang.String local)
load the properties file with specified locale. |
void |
setLocalizedProperty(java.lang.String key,
java.lang.String value)
|
void |
setManagerLocal(java.lang.String local)
|
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 DEFAULT
public static final java.lang.String FR
public static final java.lang.String US
public static final java.lang.String EN
public static final java.lang.String BE
public static final java.lang.String SW
public static final java.lang.String DE
public static final java.lang.String IT
public static final java.lang.String ES
Method Detail |
public java.lang.String getSystemDefaultLocale()
public static IntlResourceManager getManager()
public java.lang.String getUserLocale()
public java.util.Properties loadLocalizedProperties(java.lang.String fileName, java.lang.String local) throws java.io.FileNotFoundException, java.io.IOException
local
- : locale of the file to load
:
- java.io.FileNotFoundException if the localized file and fileName is not found.
:
- java.io.IOException if an error occurs.
java.io.FileNotFoundException
java.io.IOException
public java.lang.String getLocalizedFileName(java.lang.String fileName, boolean force)
public void addLocalizedProperties(java.lang.String propertiesFile, java.lang.String local) throws java.io.FileNotFoundException, java.io.IOException
local
- : locale of the file to load
:
- java.io.FileNotFoundException if the localized file and fileName is not found.
:
- java.io.IOException if an error occurs.
java.io.FileNotFoundException
java.io.IOException
public java.lang.String getLocalizedProperty(java.lang.String propKey)
public void setLocalizedProperty(java.lang.String key, java.lang.String value)
public java.lang.String getLocalizedProperty(java.lang.String propKey, java.lang.String defaultValue)
public java.lang.String getManagerLocaleString()
public void setManagerLocal(java.lang.String local)
public java.util.Locale getManagerLocale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |