public Map<Locale, Map<String, String>> loadData(CmsObject cms, CmsVfsBundleParameters params) throws Exception {

        CmsFile file = cms.readFile(params.getBasePath());
        String encoding = getEncoding(cms, file);
        Properties props = new Properties();
        // we do the decoding by ourselves using the encoding set on the resource, so we are not restricted to ISO 8859-1
        props.load(new InputStreamReader(new ByteArrayInputStream(file.getContents()), encoding));
        Map<String, String> messages = Maps.newHashMap();
        for (Map.Entry<Object, Object> entry : props.entrySet()) {
            messages.put((String)entry.getKey(), (String)entry.getValue());
        }
        Map<Locale, Map<String, String>> result = Maps.newHashMap();
        result.put(params.getLocale(), messages);
        return result;
    }
public Map < Locale , Map < String , String > > loadData ( CmsObject cms , CmsVfsBundleParameters params ) throws Exception { CmsFile file = cms . readFile ( params . getBasePath ( ) ) ; String encoding = getEncoding ( cms , file ) ; Properties props = new Properties ( ) ; props . load ( new InputStreamReader ( new ByteArrayInputStream ( file . getContents ( ) ) , encoding ) ) ; Map < String , String > messages = Maps . newHashMap ( ) ; for ( Map . Entry < Object , Object > entry : props . entrySet ( ) ) { messages . put ( ( String ) entry . getKey ( ) , ( String ) entry . getValue ( ) ) ; } Map < Locale , Map < String , String > > result = Maps . newHashMap ( ) ; result . put ( params . getLocale ( ) , messages ) ; return result ; }
@see org.opencms.i18n.CmsVfsResourceBundle.I_Loader#loadData(org.opencms.file.CmsObject, org.opencms.i18n.CmsVfsBundleParameters)