本文整理了Java中java.util.ResourceBundle.getLoader
方法的一些代码示例,展示了ResourceBundle.getLoader
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceBundle.getLoader
方法的具体详情如下:
包路径:java.util.ResourceBundle
类名称:ResourceBundle
方法名:getLoader
暂无
代码示例来源:origin: robovm/robovm
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: robovm/robovm
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param targetLocale
* the target locale of the resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName,
Locale targetLocale, ResourceBundle.Control control) {
return getBundle(baseName, targetLocale, getLoader(), control);
}
代码示例来源:origin: robovm/robovm
/**
* Finds the named resource bundle for the default {@code Locale} and the caller's
* {@code ClassLoader}.
*
* @param bundleName
* the name of the {@code ResourceBundle}.
* @return the requested {@code ResourceBundle}.
* @throws MissingResourceException
* if the {@code ResourceBundle} cannot be found.
*/
public static ResourceBundle getBundle(String bundleName) throws MissingResourceException {
ClassLoader classLoader = VMStack.getCallingClassLoader();
if (classLoader == null) {
classLoader = getLoader();
}
return getBundle(bundleName, Locale.getDefault(), classLoader);
}
代码示例来源:origin: robovm/robovm
/**
* Finds the named {@code ResourceBundle} for the specified {@code Locale} and the caller
* {@code ClassLoader}.
*
* @param bundleName
* the name of the {@code ResourceBundle}.
* @param locale
* the {@code Locale}.
* @return the requested resource bundle.
* @throws MissingResourceException
* if the resource bundle cannot be found.
*/
public static ResourceBundle getBundle(String bundleName, Locale locale) {
ClassLoader classLoader = VMStack.getCallingClassLoader();
if (classLoader == null) {
classLoader = getLoader();
}
return getBundle(bundleName, locale, classLoader);
}
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName the base name of a resource bundle
* @param targetLocale the target locale of the resource bundle
* @param control the control that control the access sequence
* @return the named resource bundle
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName,
Locale targetLocale, ResourceBundle.Control control) {
return getBundle(baseName, targetLocale, getLoader(), control);
}
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName the base name of a resource bundle
* @param control the control that control the access sequence
* @return the named resource bundle
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: MobiVM/robovm
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param targetLocale
* the target locale of the resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName,
Locale targetLocale, ResourceBundle.Control control) {
return getBundle(baseName, targetLocale, getLoader(), control);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param targetLocale
* the target locale of the resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName,
Locale targetLocale, ResourceBundle.Control control) {
return getBundle(baseName, targetLocale, getLoader(), control);
}
代码示例来源:origin: MobiVM/robovm
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: ibinti/bugvm
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param targetLocale
* the target locale of the resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName,
Locale targetLocale, ResourceBundle.Control control) {
return getBundle(baseName, targetLocale, getLoader(), control);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: ibinti/bugvm
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Finds the named resource bundle for the specified base name and control.
*
* @param baseName
* the base name of a resource bundle
* @param control
* the control that control the access sequence
* @return the named resource bundle
*
* @since 1.6
*/
public static ResourceBundle getBundle(String baseName, ResourceBundle.Control control) {
return getBundle(baseName, Locale.getDefault(), getLoader(), control);
}
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Finds the named {@code ResourceBundle} for the specified {@code Locale} and the caller
* {@code ClassLoader}.
*
* @param bundleName the name of the {@code ResourceBundle}.
* @param locale the {@code Locale}.
* @return the requested resource bundle.
* @throws MissingResourceException if the resource bundle cannot be found.
*/
public static ResourceBundle getBundle(String bundleName, Locale locale) {
ClassLoader classLoader = ResourceBundle.class.getClassLoader();
if (classLoader == null) {
classLoader = getLoader();
}
return getBundle(bundleName, locale, classLoader);
}
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Finds the named resource bundle for the default {@code Locale} and the caller's
* {@code ClassLoader}.
*
* @param bundleName the name of the {@code ResourceBundle}.
* @return the requested {@code ResourceBundle}.
* @throws MissingResourceException if the {@code ResourceBundle} cannot be found.
*/
public static ResourceBundle getBundle(String bundleName) throws MissingResourceException {
ClassLoader classLoader = ResourceBundle.class.getClassLoader();
if (classLoader == null) {
classLoader = getLoader();
}
return getBundle(bundleName, Locale.getDefault(), classLoader);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Finds the named resource bundle for the default {@code Locale} and the caller's
* {@code ClassLoader}.
*
* @param bundleName
* the name of the {@code ResourceBundle}.
* @return the requested {@code ResourceBundle}.
* @throws MissingResourceException
* if the {@code ResourceBundle} cannot be found.
*/
public static ResourceBundle getBundle(String bundleName) throws MissingResourceException {
ClassLoader classLoader = VMStack.getCallingClassLoader();
if (classLoader == null) {
classLoader = getLoader();
}
return getBundle(bundleName, Locale.getDefault(), classLoader);
}
代码示例来源:origin: ibinti/bugvm
/**
* Finds the named resource bundle for the default {@code Locale} and the caller's
* {@code ClassLoader}.
*
* @param bundleName
* the name of the {@code ResourceBundle}.
* @return the requested {@code ResourceBundle}.
* @throws MissingResourceException
* if the {@code ResourceBundle} cannot be found.
*/
public static ResourceBundle getBundle(String bundleName) throws MissingResourceException {
ClassLoader classLoader = VMStack.getCallingClassLoader();
if (classLoader == null) {
classLoader = getLoader();
}
return getBundle(bundleName, Locale.getDefault(), classLoader);
}
代码示例来源:origin: MobiVM/robovm
/**
* Finds the named resource bundle for the default {@code Locale} and the caller's
* {@code ClassLoader}.
*
* @param bundleName
* the name of the {@code ResourceBundle}.
* @return the requested {@code ResourceBundle}.
* @throws MissingResourceException
* if the {@code ResourceBundle} cannot be found.
*/
public static ResourceBundle getBundle(String bundleName) throws MissingResourceException {
ClassLoader classLoader = VMStack.getCallingClassLoader();
if (classLoader == null) {
classLoader = getLoader();
}
return getBundle(bundleName, Locale.getDefault(), classLoader);
}
内容来源于网络,如有侵权,请联系作者删除!