Skip to content

Most visited

Recently visited

navigation
Added in API level 1

PropertyResourceBundle

public class PropertyResourceBundle
extends ResourceBundle

java.lang.Object
   ↳ java.util.ResourceBundle
     ↳ java.util.PropertyResourceBundle


PropertyResourceBundle loads resources from an InputStream. All resources are Strings. The resources must be of the form key=value, one resource per line (see Properties).

See also:

Summary

Inherited fields

From class java.util.ResourceBundle

Public constructors

PropertyResourceBundle(InputStream stream)

Constructs a new instance of PropertyResourceBundle and loads the properties file from the specified InputStream.

PropertyResourceBundle(Reader reader)

Constructs a new resource bundle with properties read from reader.

Public methods

Enumeration<String> getKeys()

Returns the names of the resources contained in this ResourceBundle.

Object handleGetObject(String key)

Returns the named resource from this ResourceBundle, or null if the resource is not found.

Protected methods

Set<String> handleKeySet()

Inherited methods

From class java.util.ResourceBundle
From class java.lang.Object

Public constructors

PropertyResourceBundle

Added in API level 1
PropertyResourceBundle (InputStream stream)

Constructs a new instance of PropertyResourceBundle and loads the properties file from the specified InputStream.

Parameters
stream InputStream: the InputStream.
Throws
IOException if an error occurs during a read operation on the InputStream.

PropertyResourceBundle

Added in API level 9
PropertyResourceBundle (Reader reader)

Constructs a new resource bundle with properties read from reader.

Parameters
reader Reader: the Reader
Throws
IOException
IOException

Public methods

getKeys

Added in API level 1
Enumeration<String> getKeys ()

Returns the names of the resources contained in this ResourceBundle.

Returns
Enumeration<String> an Enumeration of the resource names.

handleGetObject

Added in API level 1
Object handleGetObject (String key)

Returns the named resource from this ResourceBundle, or null if the resource is not found.

Parameters
key String: the name of the resource.
Returns
Object the resource object.

Protected methods

handleKeySet

Added in API level 9
Set<String> handleKeySet ()

Returns
Set<String>
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.