Code example for PropertyResourceBundle

0
            File file = new File(pathToBundles, bundleName);
 
            if (file.isFile()) { // Also checks for existance
                fis = new FileInputStream(file);
                reader = new InputStreamReader(fis, Charset.forName("UTF-8"));
                bundle = new PropertyResourceBundle(reader);
            } 
        } finally { 
            if(reader != null){
                reader.close() ;
            } 
            if(fis != null){
                fis.close() ;
            } 
        } 
        return bundle;
    } 
 
    @Override 
    public String toBundleName(String baseName, Locale locale) {
Contextual code suggestions in your IDE  Get Codota for Java