Java Doc for LocaleDatabase.java in  » Installer » IzPack » com » izforge » izpack » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Installer » IzPack » com.izforge.izpack 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.TreeMap
   com.izforge.izpack.LocaleDatabase

LocaleDatabase
public class LocaleDatabase extends TreeMap (Code)
Represents a database of a locale.
author:
   Julien Ponge


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  LocaleDatabase(InputStream in)
     The constructor.

Method Summary
public  voidadd(InputStream in)
     Adds the contents of the given stream to the data base.
public  StringgetString(String key)
     Convenience method to retrieve an element.
Parameters:
  key - The key of the element to retrieve.
public  StringgetString(String key, String[] variables)
     Convenience method to retrieve an element and simultainiously insert variables into the string.

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
LocaleDatabase
public LocaleDatabase(InputStream in) throws Exception(Code)
The constructor.
Parameters:
  in - An InputStream to read the translation from.
exception:
  Exception - Description of the Exception




Method Detail
add
public void add(InputStream in) throws Exception(Code)
Adds the contents of the given stream to the data base. The stream have to contain key value pairs as declared by the DTD langpack.dtd.
Parameters:
  in - an InputStream to read the translation from.
throws:
  Exception -



getString
public String getString(String key)(Code)
Convenience method to retrieve an element.
Parameters:
  key - The key of the element to retrieve. The element value or the key if not found.



getString
public String getString(String key, String[] variables)(Code)
Convenience method to retrieve an element and simultainiously insert variables into the string. A placeholder have to be build with the substring {n} where n is the parameter argument beginning with 0. The first argument is therefore {0}. If a parameter starts with a dollar sign the value will be used as key into the LocalDatabase. The key can be written as $MYKEY or ${MYKEY}. For all placeholder an argument should be exist and vis a versa.
Parameters:
  key - The key of the element to retrieve.
Parameters:
  variables - the variables to insert The element value with the variables inserted or the key if not found.



Methods inherited from java.util.TreeMap
public Map.Entry<K, V> ceilingEntry(K key)(Code)(Java Doc)
public K ceilingKey(K key)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public Comparator<? super K> comparator()(Code)(Java Doc)
public boolean containsKey(Object key)(Code)(Java Doc)
public boolean containsValue(Object value)(Code)(Java Doc)
public NavigableSet<K> descendingKeySet()(Code)(Java Doc)
public NavigableMap<K, V> descendingMap()(Code)(Java Doc)
public Set<Map.Entry<K, V>> entrySet()(Code)(Java Doc)
public Map.Entry<K, V> firstEntry()(Code)(Java Doc)
public K firstKey()(Code)(Java Doc)
public Map.Entry<K, V> floorEntry(K key)(Code)(Java Doc)
public K floorKey(K key)(Code)(Java Doc)
public V get(Object key)(Code)(Java Doc)
public NavigableMap<K, V> headMap(K toKey, boolean inclusive)(Code)(Java Doc)
public SortedMap<K, V> headMap(K toKey)(Code)(Java Doc)
public Map.Entry<K, V> higherEntry(K key)(Code)(Java Doc)
public K higherKey(K key)(Code)(Java Doc)
public Set<K> keySet()(Code)(Java Doc)
public Map.Entry<K, V> lastEntry()(Code)(Java Doc)
public K lastKey()(Code)(Java Doc)
public Map.Entry<K, V> lowerEntry(K key)(Code)(Java Doc)
public K lowerKey(K key)(Code)(Java Doc)
public NavigableSet<K> navigableKeySet()(Code)(Java Doc)
public Map.Entry<K, V> pollFirstEntry()(Code)(Java Doc)
public Map.Entry<K, V> pollLastEntry()(Code)(Java Doc)
public V put(K key, V value)(Code)(Java Doc)
public void putAll(Map<? extends K, ? extends V> map)(Code)(Java Doc)
public V remove(Object key)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public NavigableMap<K, V> subMap(K fromKey, boolean fromInclusive, K toKey, boolean toInclusive)(Code)(Java Doc)
public SortedMap<K, V> subMap(K fromKey, K toKey)(Code)(Java Doc)
public NavigableMap<K, V> tailMap(K fromKey, boolean inclusive)(Code)(Java Doc)
public SortedMap<K, V> tailMap(K fromKey)(Code)(Java Doc)
public Collection<V> values()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.