com.izforge.izpack
Class LocaleDatabase

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.TreeMap
          extended bycom.izforge.izpack.LocaleDatabase
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable, 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 inherited from class java.util.TreeMap
 
Nested classes inherited from class java.util.AbstractMap
 
Field Summary
 
Fields inherited from class java.util.TreeMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
LocaleDatabase(java.io.InputStream in)
          The constructor.
 
Method Summary
 java.lang.String getString(java.lang.String key)
          Convenience method to retrieve an element.
 
Methods inherited from class java.util.TreeMap
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, 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
 

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

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.