20230706 java.util.ResourceBundle
介绍
- java.util.ResourceBundle
- public abstract class ResourceBundle
- 资源包
API
static
- clearCache
- getBundle
- ResourceBundle getBundle(String baseName)
- ResourceBundle getBundle(String baseName, Control control)
- ResourceBundle getBundle(String baseName, Locale locale)
- ResourceBundle getBundle(String baseName, Module module)
- ResourceBundle getBundle(String baseName, Locale targetLocale, Module module)
- ResourceBundle getBundle(String baseName, Locale targetLocale, Control control)
- ResourceBundle getBundle(String baseName, Locale locale, ClassLoader loader)
- ResourceBundle getBundle(String baseName, Locale targetLocale, ClassLoader loader, Control control)
public
-
getObject
- 从资源包或它的父包中查找一个对象
-
getString
- 从资源包或它的父包中查找一个对象并把它转型成字符串
-
getStringArray
- 从资源包或它的父包中查找一个对象并把它转型成字符串数组
-
getBaseBundleName
-
getKeys
- 返回一个枚举对象,枚举出资源包中的所有键,也包括父包中的键
-
getLocale
-
keySet
-
containsKey