Android
java.util
public class

java.util.PropertyResourceBundle

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.

Summary

Fields inherited from class java.util.ResourceBundle

Public Constructors

            PropertyResourceBundle(InputStream stream)
Constructs a new instance of PropertyResourceBundle and loads the properties file from the specified input stream.

Public Methods

          Enumeration<String getKeys()
Returns the names of the resources contained in this PropertyResourceBundle.
          Object  handleGetObject(String key)
Returns the named resource from this PropertyResourceBundle, or null if the resource is not found.
Methods inherited from class java.util.ResourceBundle
Methods inherited from class java.lang.Object

Details

Public Constructors

public PropertyResourceBundle(InputStream stream)

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

Parameters

stream the input stream

Throws

IOException

Public Methods

public Enumeration<String> getKeys()

Returns the names of the resources contained in this PropertyResourceBundle.

Returns

  • an Enumeration of the resource names

public Object handleGetObject(String key)

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

Parameters

key the name of the resource

Returns

  • the resource object
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56