org.stellarium
Class Translator.POResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.stellarium.Translator.POResourceBundle
Enclosing class:
Translator

static class Translator.POResourceBundle
extends java.util.ResourceBundle


Field Summary
private  java.lang.String bundleName
           
private  java.util.Locale locale
           
private  java.util.Properties properties
           
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
Translator.POResourceBundle(java.lang.String bundleName)
           
Translator.POResourceBundle(java.lang.String bundleName, java.util.Locale locale)
           
 
Method Summary
 java.util.Enumeration<java.lang.String> getKeys()
           
 java.util.Locale getLocale()
           
protected  java.lang.Object handleGetObject(java.lang.String key)
          Gets an object for the given key from this resource bundle.
private  java.lang.String interpretValue(java.lang.String currentValue)
           
 java.lang.String normalizeKey(java.lang.String key)
           
private  void processComment(java.lang.String comment)
           
private  void processKeyValue(java.lang.String currentKey, java.lang.String currentValue)
           
private  void read()
           
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locale

private java.util.Locale locale

bundleName

private java.lang.String bundleName

properties

private java.util.Properties properties
Constructor Detail

Translator.POResourceBundle

public Translator.POResourceBundle(java.lang.String bundleName)

Translator.POResourceBundle

public Translator.POResourceBundle(java.lang.String bundleName,
                                   java.util.Locale locale)
Method Detail

getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class java.util.ResourceBundle

normalizeKey

public java.lang.String normalizeKey(java.lang.String key)

read

private void read()

interpretValue

private java.lang.String interpretValue(java.lang.String currentValue)

processKeyValue

private void processKeyValue(java.lang.String currentKey,
                             java.lang.String currentValue)

processComment

private void processComment(java.lang.String comment)

handleGetObject

protected java.lang.Object handleGetObject(java.lang.String key)
Gets an object for the given key from this resource bundle. Returns the key if this resource bundle does not contain an object for the given key.

Specified by:
handleGetObject in class java.util.ResourceBundle
Parameters:
key - the key for the desired object
Returns:
the object for the given key, or the key if object is not found
Throws:
java.lang.NullPointerException - if key is null

getKeys

public java.util.Enumeration<java.lang.String> getKeys()
Specified by:
getKeys in class java.util.ResourceBundle