com.tekann.i18n
Class I18n

java.lang.Object
  extended by com.tekann.i18n.I18n

public class I18n
extends java.lang.Object

Messages for i18n support.

Author:
Evandro Rathke

Field Summary
 java.lang.String emptyValue
           
 
Constructor Summary
I18n(Locale locale, Internacionalizable i)
           
 
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
 

Field Detail

emptyValue

public java.lang.String emptyValue
Constructor Detail

I18n

public I18n(Locale locale,
            Internacionalizable i)
Method Detail

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)