| |
|
| java.lang.Object java.util.ResourceBundle java.util.PropertyResourceBundle
PropertyResourceBundle | public class PropertyResourceBundle extends ResourceBundle (Code) | | PropertyResourceBundle loads resources from an InputStream. All resources are
Strings. The resources must be of the form key=value , one
resource per line.
See Also: ResourceBundle See Also: Properties since: 1.1 |
Constructor Summary | |
public | PropertyResourceBundle(InputStream stream) Constructs a new instance of PropertyResourceBundle and loads the
properties file from the specified input stream. |
Method Summary | |
public Enumeration<String> | getKeys() Answers the names of the resources contained in this
PropertyResourceBundle. | public Object | handleGetObject(String key) Answers the named resource from this PropertyResourceBundle, or null if
the resource is not found. |
PropertyResourceBundle | public PropertyResourceBundle(InputStream stream) throws IOException(Code) | | Constructs a new instance of PropertyResourceBundle and loads the
properties file from the specified input stream.
Parameters: stream - the input stream throws: IOException - |
getKeys | public Enumeration<String> getKeys()(Code) | | Answers the names of the resources contained in this
PropertyResourceBundle.
an Enumeration of the resource names |
handleGetObject | public Object handleGetObject(String key)(Code) | | Answers the named resource from this PropertyResourceBundle, or null if
the resource is not found.
Parameters: key - the name of the resource the resource object |
|
|
|