Improved build.xml
[vimdoclet.git] / sample / java.util.PropertyResourceBundle.txt
blobcde93b4cf8c0a8ea16ab67a120ce0e943eeddee0
1 *java.util.PropertyResourceBundle* *PropertyResourceBundle* PropertyResourceBund
3 public class PropertyResourceBundle
4   extends    |java.util.ResourceBundle|
6 |java.util.PropertyResourceBundle_Description|
7 |java.util.PropertyResourceBundle_Fields|
8 |java.util.PropertyResourceBundle_Constructors|
9 |java.util.PropertyResourceBundle_Methods|
11 ================================================================================
13 *java.util.PropertyResourceBundle_Constructors*
14 |java.util.PropertyResourceBundle(InputStream)|Creates a property resource bund
16 *java.util.PropertyResourceBundle_Methods*
17 |java.util.PropertyResourceBundle.getKeys()|Implementation of ResourceBundle.ge
18 |java.util.PropertyResourceBundle.handleGetObject(String)|
20 *java.util.PropertyResourceBundle_Description*
22 PropertyResourceBundle is a concrete subclass of ResourceBundle that manages 
23 resources for a locale using a set of static strings from a property file. See 
24 ResourceBundle(|java.util.ResourceBundle|) for more information about resource 
25 bundles. See Properties(|java.util.Properties|) for more information about 
26 properties files, in particular the information on character encodings. 
28 Unlike other types of resource bundle, you don't subclass 
29 PropertyResourceBundle. Instead, you supply properties files containing the 
30 resource data. ResourceBundle.getBundle will automatically look for the 
31 appropriate properties file and create a PropertyResourceBundle that refers to 
32 it. See ResourceBundle.getBundle(|java.util.ResourceBundle|) for a complete 
33 description of the search and instantiation strategy. 
35 The following example shows a member of a resource bundle family with the base 
36 name "MyResources". The text defines the bundle "MyResources_de", the German 
37 member of the bundle family. This member is based on PropertyResourceBundle, 
38 and the text therefore is the content of the file "MyResources_de.properties" 
39 (a related example shows how you can add bundles to this family that are 
40 implemented as subclasses of ListResourceBundle). The keys in this example are 
41 of the form "s1" etc. The actual keys are entirely up to your choice, so long 
42 as they are the same as the keys you use in your program to retrieve the 
43 objects from the bundle. Keys are case-sensitive. 
47 # MessageFormat pattern s1=Die Platte \"{1}\" enthlt {0}. 
49 # location of {0} in pattern s2=1 
51 # sample disk name s3=Meine Platte 
53 # first ChoiceFormat choice s4=keine Dateien 
55 # second ChoiceFormat choice s5=eine Datei 
57 # third ChoiceFormat choice s6={0,number} Dateien 
59 # sample date s7=3. Mrz 1996 
64 *java.util.PropertyResourceBundle(InputStream)*
66 public PropertyResourceBundle(java.io.InputStream stream)
67   throws |java.io.IOException|
68          
69 Creates a property resource bundle. 
71     stream - property file to read from. 
73 *java.util.PropertyResourceBundle.getKeys()*
75 public |java.util.Enumeration| getKeys()
77 Implementation of ResourceBundle.getKeys. 
80 *java.util.PropertyResourceBundle.handleGetObject(String)*
82 public |java.lang.Object| handleGetObject(java.lang.String key)