📅  最后修改于: 2020-11-14 06:21:44             🧑  作者: Mango
java.util.PropertyResourceBundle类是ResourceBundle的一个具体子类,它使用属性文件中的一组静态字符串来管理语言环境的资源。以下是PropertyResourceBundle的重点-
可以从InputStream或Reader(代表属性文件)构造该类。
以下是java.util.PropertyResourceBundle类的声明-
public class PropertyResourceBundle
extends ResourceBundle
从类java.util.ResourceBundle继承的字段。
Sr.No. | Constructor & Description |
---|---|
1 |
PropertyResourceBundle(InputStream stream) This creates a property resource bundle from an InputStream. |
2 |
PropertyResourceBundle(Reader reader) This creates a property resource bundle from a Reader. |
Sr.No. | Method & Description |
---|---|
1 | Enumeration This method returns an Enumeration of the keys contained in this ResourceBundle and its parent bundles. |
2 | Object handleGetObject(String key)
This method gets an object for the given key from this resource bundle. |
3 | protected Set This method returns a Set of the keys contained only in this ResourceBundle. |
此类从以下类继承方法-