Package org.ini4j

Examples of org.ini4j.Ini.load()


        File iniFile = Utils.getResourceAsFile(resource);
        final Ini iniConfig = new Ini();
        //ini4j������/��ʱ�����䵱���ָ��ַ���������ķָ��ַ�
        iniConfig.getConfig().setPathSeparator('+');
        iniConfig.getConfig().setFileEncoding(Charset.forName("GBK"));
    iniConfig.load(iniFile);
        this.populateConfig(iniConfig);
    }
   

    private void populateConfig(Ini iniConfig) {
View Full Code Here


                logger.info("Reloading configuration......");
//                Properties props = Utils.getResourceAsProperties(this.configPath, "GBK");
//                this.populateConfig(props);
                File iniFile = Utils.getResourceAsFile(this.configPath);
                final Ini iniConfig = new Ini();
                iniConfig.load(iniFile);
                this.populateConfig(iniConfig);
                logger.info(this.toString());
                logger.info("wwList:"+this.getWangwangList().toString());
                logger.info("Reload topics successfully");
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.