net.sf.wcfart.tbutils.res.BundleResourceProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wcf-art Show documentation
Show all versions of wcf-art Show documentation
jpivot-wcf code used by the ART reporting tool
The newest version!
package net.sf.wcfart.tbutils.res;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import java.util.Set;
/**
* Adapter fuer ResourceBundle
*/
public class BundleResourceProvider implements ResourceProvider {
private ResourceBundle resb;
private String name;
public BundleResourceProvider(String name, ResourceBundle resb) {
this.name = name;
this.resb = resb;
}
public String getString(String key) {
try {
return resb.getString(key);
} catch (MissingResourceException e) {
return null;
}
}
public Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy