java util PropertyResourceBundle








Class java.util.PropertyResourceBundle





All Packages Class Hierarchy This Package Previous Next Index


Class java.util.PropertyResourceBundle


java.lang.Object
|
+----java.util.ResourceBundle
|
+----java.util.PropertyResourceBundle



public class PropertyResourceBundle
extends ResourceBundle

PropertyResourceBundle is an abstract subclass of
ResourceBundle that manages resources for a locale
using a set of static strings from a property file. See
ResourceBundle for more information about resource
bundles in general.

The property file contains the keys that you use in your source code
in calls to ResourceBundle.getString and similar methods,
and their corresponding values, etc.
The name of the property file indicates the resource bundle's family
and locale.

In the following example, the keys are of the form "s1"... The actual
keys are entirely up to your choice, so long as they are the same as
the keys you use in your program to retrieve the objects from the bundle.
Keys are case-sensitive.


s1=3
s2=MeinDisk
s3=3 Mar 96
s4=Der disk '{1}' a {0} a {2}.
s5=0
s6=keine Datein
s7=1
s8=ein Datei
s9=2
s10={0}|3 Datein
s11=Der Format worf ein Exception: {0}
s12=ERROR
s14=Resulte
s13=Dialogue
s15=Pattern
s16=1,3




See Also:
ResourceBundle, ListResourceBundle








PropertyResourceBundle(InputStream)
Creates a property resource







getKeys()
Implementation of ResourceBundle.getKeys.

handleGetObject(String)
Override of ResourceBundle, same semantics








PropertyResourceBundle

public PropertyResourceBundle(InputStream stream) throws IOException


Creates a property resource


Parameters:
file - property file to read from.







handleGetObject

public Object handleGetObject(String key)


Override of ResourceBundle, same semantics


Overrides:
handleGetObject in class ResourceBundle



getKeys

public Enumeration getKeys()


Implementation of ResourceBundle.getKeys.


Overrides:
getKeys in class ResourceBundle




All Packages Class Hierarchy This Package Previous Next Index

Submit a bug or feature - Version 1.1.7 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.




Wyszukiwarka

Podobne podstrony:
java util Properties
java beans PropertyChangeEvent
java util MissingResourceException
java util ListResourceBundle
java beans PropertyEditor
Package java util zip
java util zip Adler32
java util zip ZipInputStream
java util zip DeflaterOutputStream
java beans PropertyEditorManager
java beans PropertyDescriptor
java util zip InflaterInputStream
java util zip GZIPOutputStream
java util Vector
java util NoSuchElementException
java util zip CheckedOutputStream
java util Observable
java util GregorianCalendar
java util zip ZipFile

więcej podobnych podstron