Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

PropertyResourceBundle

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

Class Overview

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).

Summary

[Expand]
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 ()
[Expand]
Inherited Methods
From class java.util.ResourceBundle
From class java.lang.Object

Public Constructors

public PropertyResourceBundle ( InputStream stream)

Added in API level 1

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

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

public PropertyResourceBundle ( Reader reader)

Added in API level 9

Constructs a new resource bundle with properties read from reader .

Parameters
reader the Reader
Throws
IOException
IOException

Public Methods

public Enumeration < String > getKeys ()

Added in API level 1

Returns the names of the resources contained in this ResourceBundle .

Returns
  • an Enumeration of the resource names.

public Object handleGetObject ( String key)

Added in API level 1

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

Parameters
key the name of the resource.
Returns
  • the resource object.

Protected Methods

protected Set < String > handleKeySet ()

Added in API level 9