类 PropertyResourceBundleUtils
- java.lang.Object
-
- io.microsphere.util.BaseUtils
-
- io.microsphere.util.PropertyResourceBundleUtils
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static java.util.ResourceBundle
getBundle(java.lang.String baseName)
ResourceBundle.getBundle(String, Locale)
withdefault file encoding
encoding anddefault Locale
underThread context ClassLoader
static java.util.ResourceBundle
getBundle(java.lang.String baseName, java.lang.String encoding)
ResourceBundle.getBundle(String, Locale)
with specified encoding anddefault Locale
underThread context ClassLoader
static java.util.ResourceBundle
getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader classLoader, java.lang.String encoding)
ResourceBundle.getBundle(String, Locale, ClassLoader)
with specified encodingstatic java.util.ResourceBundle
getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.String encoding)
ResourceBundle.getBundle(String, Locale)
with specified encoding underThread context ClassLoader
-
-
-
方法详细资料
-
getBundle
public static java.util.ResourceBundle getBundle(java.lang.String baseName)
ResourceBundle.getBundle(String, Locale)
withdefault file encoding
encoding anddefault Locale
underThread context ClassLoader
- 参数:
baseName
- the base name of the resource bundle, a fully qualified class name- 返回:
- 抛出:
java.lang.NullPointerException
- ifbaseName
,locale
, orloader
isnull
java.util.MissingResourceException
- if no resource bundle for the specified base name can be foundjava.lang.IllegalArgumentException
- if the givencontrol
doesn't perform properly (e.g.,control.getCandidateLocales
returns null.) Note that validation ofcontrol
is performed as needed.
-
getBundle
public static java.util.ResourceBundle getBundle(java.lang.String baseName, java.lang.String encoding)
ResourceBundle.getBundle(String, Locale)
with specified encoding anddefault Locale
underThread context ClassLoader
- 参数:
baseName
- the base name of the resource bundle, a fully qualified class nameencoding
- the control which gives information for the resource bundle loading process- 返回:
- 抛出:
java.lang.NullPointerException
- ifbaseName
isnull
java.util.MissingResourceException
- if no resource bundle for the specified base name can be foundjava.lang.IllegalArgumentException
- if the givencontrol
doesn't perform properly (e.g.,control.getCandidateLocales
returns null.) Note that validation ofcontrol
is performed as needed.
-
getBundle
public static java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.String encoding)
ResourceBundle.getBundle(String, Locale)
with specified encoding underThread context ClassLoader
- 参数:
baseName
- the base name of the resource bundle, a fully qualified class namelocale
- the locale for which a resource bundle is desiredencoding
- the control which gives information for the resource bundle loading process- 返回:
- 抛出:
java.lang.NullPointerException
- ifbaseName
,locale
isnull
java.util.MissingResourceException
- if no resource bundle for the specified base name can be foundjava.lang.IllegalArgumentException
- if the givencontrol
doesn't perform properly (e.g.,control.getCandidateLocales
returns null.) Note that validation ofcontrol
is performed as needed.
-
getBundle
public static java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader classLoader, java.lang.String encoding)
ResourceBundle.getBundle(String, Locale, ClassLoader)
with specified encoding- 参数:
baseName
- the base name of the resource bundle, a fully qualified class namelocale
- the locale for which a resource bundle is desiredclassLoader
- the class loader from which to load the resource bundleencoding
- the control which gives information for the resource bundle loading process- 返回:
- 抛出:
java.lang.NullPointerException
- ifbaseName
,locale
, orloader
isnull
java.util.MissingResourceException
- if no resource bundle for the specified base name can be foundjava.lang.IllegalArgumentException
- if the givencontrol
doesn't perform properly (e.g.,control.getCandidateLocales
returns null.) Note that validation ofcontrol
is performed as needed.
-
-