|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
java.util
|
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.ResourceBundle |
---|
ResourceBundle.Control |
Field Summary |
---|
Fields inherited from class java.util.ResourceBundle |
---|
parent |
Constructor Summary | |
---|---|
PropertyResourceBundle(InputStream stream)
Creates a property resource bundle from an InputStream . |
|
PropertyResourceBundle(Reader reader)
Creates a property resource bundle from a Reader . |
Method Summary | |
---|---|
Enumeration<String> |
getKeys()
Returns an Enumeration of the keys contained in
this ResourceBundle and its parent bundles. |
Object |
handleGetObject(String key)
Gets an object for the given key from this resource bundle. |
protected Set<String> |
handleKeySet()
Returns a Set of the keys contained
only in this ResourceBundle . |
Methods inherited from class java.util.ResourceBundle |
---|
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyResourceBundle(InputStream stream) throws IOException
InputStream
. The property file read with this constructor
must be encoded in ISO-8859-1.
stream
- an InputStream that represents a property file
to read from.
IOException
- if an I/O error occurs
NullPointerException
- if stream
is nullpublic PropertyResourceBundle(Reader reader) throws IOException
Reader
. Unlike the constructor
PropertyResourceBundle(InputStream)
,
there is no limitation as to the encoding of the input property file.
reader
- a Reader that represents a property file to
read from.
IOException
- if an I/O error occurs
NullPointerException
- if reader
is nullMethod Detail |
---|
public Object handleGetObject(String key)
ResourceBundle
handleGetObject
in class ResourceBundle
key
- the key for the desired object
public Enumeration<String> getKeys()
Enumeration
of the keys contained in
this ResourceBundle
and its parent bundles.
getKeys
in class ResourceBundle
Enumeration
of the keys contained in
this ResourceBundle
and its parent bundles.ResourceBundle.keySet()
protected Set<String> handleKeySet()
Set
of the keys contained
only in this ResourceBundle
.
handleKeySet
in class ResourceBundle
Set
of the keys contained only in this
ResourceBundle
ResourceBundle.keySet()