com.izforge.izpack
Class LocaleDatabase

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap
          extended by com.izforge.izpack.LocaleDatabase
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map, java.util.NavigableMap, java.util.SortedMap

public class LocaleDatabase
extends java.util.TreeMap

Represents a database of a locale.

Author:
Julien Ponge
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
LocaleDatabase(java.io.InputStream in)
          The constructor.
 
Method Summary
 void add(java.io.InputStream in)
           
 java.lang.String getString(java.lang.String key)
          Convenience method to retrieve an element.
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

LocaleDatabase

public LocaleDatabase(java.io.InputStream in)
               throws java.lang.Exception
The constructor.

Parameters:
in - An InputStream to read the translation from.
Throws:
java.lang.Exception - Description of the Exception
Method Detail

add

public void add(java.io.InputStream in)
         throws java.lang.Exception
Throws:
java.lang.Exception

getString

public java.lang.String getString(java.lang.String key)
Convenience method to retrieve an element.

Parameters:
key - The key of the element to retrieve.
Returns:
The element value or the key if not found.