com.tekann.i18n
Class I18n
java.lang.Object
com.tekann.i18n.I18n
public class I18n
- extends java.lang.Object
Messages for i18n support.
- Author:
- Evandro Rathke
|
Method Summary |
Locale |
getLocale()
Get the locale |
protected java.lang.String |
getResourcePath(java.lang.String prefix,
java.lang.String resDir,
Locale locale)
|
java.lang.String |
getValue(java.lang.String key)
Get the value for the passed key |
void |
load(byte[] data)
Load property file format values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
emptyValue
public java.lang.String emptyValue
I18n
public I18n(Locale locale,
Internacionalizable i)
load
public void load(byte[] data)
- Load property file format values.
- Parameters:
data -
getValue
public java.lang.String getValue(java.lang.String key)
- Get the value for the passed key
- Parameters:
key -
- Returns:
- A String
getLocale
public Locale getLocale()
- Get the locale
- Returns:
- A Locale
getResourcePath
protected java.lang.String getResourcePath(java.lang.String prefix,
java.lang.String resDir,
Locale locale)