本文整理了Java中java.util.ResourceBundle.missingResourceException
方法的一些代码示例,展示了ResourceBundle.missingResourceException
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResourceBundle.missingResourceException
方法的具体详情如下:
包路径:java.util.ResourceBundle
类名称:ResourceBundle
方法名:missingResourceException
暂无
代码示例来源:origin: robovm/robovm
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key
* the name of the resource.
* @return the resource object.
* @throws MissingResourceException
* if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: robovm/robovm
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
代码示例来源:origin: MobiVM/robovm
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key
* the name of the resource.
* @return the resource object.
* @throws MissingResourceException
* if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: com.jtransc/jtransc-rt
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key the name of the resource.
* @return the resource object.
* @throws MissingResourceException if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key
* the name of the resource.
* @return the resource object.
* @throws MissingResourceException
* if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: ibinti/bugvm
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key
* the name of the resource.
* @return the resource object.
* @throws MissingResourceException
* if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key
* the name of the resource.
* @return the resource object.
* @throws MissingResourceException
* if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key
* the name of the resource.
* @return the resource object.
* @throws MissingResourceException
* if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Returns the named resource from this {@code ResourceBundle}. If the resource
* cannot be found in this bundle, it falls back to the parent bundle (if
* it's not null) by calling the {@link #handleGetObject} method. If the resource still
* can't be found it throws a {@code MissingResourceException}.
*
* @param key
* the name of the resource.
* @return the resource object.
* @throws MissingResourceException
* if the resource is not found.
*/
public final Object getObject(String key) {
ResourceBundle last, theParent = this;
do {
Object result = theParent.handleGetObject(key);
if (result != null) {
return result;
}
last = theParent;
theParent = theParent.parent;
} while (theParent != null);
throw missingResourceException(last.getClass().getName(), key);
}
代码示例来源:origin: MobiVM/robovm
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
代码示例来源:origin: ibinti/bugvm
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
代码示例来源:origin: com.jtransc/jtransc-rt
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
代码示例来源:origin: com.bugvm/bugvm-rt
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
代码示例来源:origin: FlexoVM/flexovm
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
代码示例来源:origin: com.gluonhq/robovm-rt
bundle = handleGetBundle(true, bundleName, defaultLocale, loader);
if (bundle == null) {
throw missingResourceException(bundleName + '_' + locale, "");
内容来源于网络,如有侵权,请联系作者删除!