Examples of Ini


Examples of asis.ini.INI

    private void processINI() {

        SPProgressBarPlug.setStatus("Spawn Randomizer: Processing INI");
        SPProgressBarPlug.incrementBar();
        INI ini = null;

        //Sets up the file reader for the ini file.
        try {
            ini = new INI("RandomSpawns.ini");


        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        Collection<INI.IniSectionHead> sections = getSectionList();

        ini.addSection(sections);

        try {
            ini.readData();


        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here

Examples of asis.ini.INI

             * to an actual patch.
             */
            //Creates a mod to store the data that is to be in the official patch
            Mod officialPatch = SPGlobal.getGlobalPatch();
            // Creates and initializes an INI object to store the INI data
            INI ini = new INI("customizedGMSTs.ini");
            Collection<IniSectionHead> sections = getSectionList();
            ini.addSection(sections);
            ini.readData();

            // Get INI Data that corresponds to the filter map
            Map<IniSectionHead, Collection<IniData>> iniData = ini.getData();

            //Processes the INI Data and makes the correct changes to officialPatch
            processIniData(iniData, officialPatch);

            /*
 
View Full Code Here

Examples of asis.ini.INI

    private void processINI() throws FileNotFoundException, IOException {
        SPProgressBarPlug.setStatus("ASIS: Processing INI");
        SPProgressBarPlug.incrementBar();
        //Sets up the file reader for the ini file.
        INI ini = null;

        //Sets up the file reader for the ini file.
        try {
            ini = new INI("ASIS.ini");
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        Collection<INI.IniSectionHead> sections = getSectionList();

        ini.addSection(sections);

        try {
            ini.readData();
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        initializeLists(ini);
View Full Code Here

Examples of asis.ini.INI

    private void processINI() {

        SPProgressBarPlug.setStatus("NPC Potions: Processing INI");
        SPProgressBarPlug.incrementBar();
        INI ini = null;

        try {
            ini = new INI("NPCPotions.ini");
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        Collection<INI.IniSectionHead> sections = getSectionList();

        ini.addSection(sections);

        try {
            ini.readData();
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        initializeLists(ini);
View Full Code Here

Examples of asis.ini.INI

            //Creates a mod to store the data that is to be in the official patch
            Mod officialPatch = SPGlobal.getGlobalPatch();

            // Creates and initializes an INI object to store the INI data
            INI ini = new INI("customizedAI.ini");

            Collection<IniSectionHead> sections = getSectionList();

            ini.addSection(sections);

            ini.readData();


            // Get INI Data that corresponds to the filter map
            Map<IniSectionHead, Collection<IniData>> iniData = ini.getData();

            //Processes the INI Data and makes the correct changes to officialPatch
            processIniData(iniData, merger, officialPatch);

View Full Code Here

Examples of asis.ini.INI

    private void processINI() {
        SPProgressBarPlug.setStatus("Automatic Perks: Processing INI");
        SPProgressBarPlug.incrementBar();
        //Sets up the file reader for the ini file.
        INI ini = null;

        //Sets up the file reader for the ini file.
        try {
            ini = new INI("AutomaticPerks.ini");
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        Collection<INI.IniSectionHead> sections = getSectionList();

        ini.addSection(sections);

        try {
            ini.readData();
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        initializeLists(ini);
View Full Code Here

Examples of asis.ini.INI

    private void processINI() {
        SPProgressBarPlug.setStatus("Automatic Spells: Processing INI");
        SPProgressBarPlug.incrementBar();
        //Sets up the file reader for the ini file.
        INI ini = null;

        //Sets up the file reader for the ini file.
        try {
            ini = new INI("AutomaticSpells.ini");
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        Collection<INI.IniSectionHead> sections = getSectionList();

        ini.addSection(sections);

        try {
            ini.readData();
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }

        initializeLists(ini);
View Full Code Here

Examples of asis.ini.INI

   
    private void processINI() {
       
        SPProgressBarPlug.setStatus("Increased Spawns: Processing INI");
        SPProgressBarPlug.incrementBar();
        INI ini = null;

        //Sets up the file reader for the ini file.
        try {
            ini = new INI("IncreasedSpawns.ini");
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }
       
        Collection<INI.IniSectionHead> sections = getSectionList();
       
        ini.addSection(sections);
       
        try {
            ini.readData();
        } catch (IOException ex) {
            Logger.getLogger(NPCPotions.class.getName()).log(Level.SEVERE, null, ex);
        }
       
        initializeLists(ini);
View Full Code Here

Examples of org.apache.shiro.config.Ini

        }
    }


    public void setDefaultFilterChainDefinitions(String definitions) {
        Ini ini = new Ini();
        ini.load(definitions);
        //did they explicitly state a 'urls' section?  Not necessary, but just in case:
        Ini.Section section = ini.getSection(IniFilterChainResolverFactory.URLS);
        if (CollectionUtils.isEmpty(section)) {
            //no urls section.  Since this _is_ a urls chain definition property, just assume the
            //default section contains only the definitions:
            section = ini.getSection(Ini.DEFAULT_SECTION_NAME);
        }
        setFilterChainDefinitionMap(section);
    }
View Full Code Here

Examples of org.apache.shiro.config.Ini

    this.filterChainDefinitions = filterChainDefinitions;
  }
 
  @Override
  public Section getObject() throws BeansException {
    Ini ini = new Ini();
        //加载默认的url
        ini.load(filterChainDefinitions);
       
        Ini.Section section = ini.getSection(IniFilterChainResolverFactory.URLS);
        if (CollectionUtils.isEmpty(section)) {
            section = ini.getSection(Ini.DEFAULT_SECTION_NAME);
        }
       
        //循环数据库资源的url
        for (Resource resource : accountManager.getResources()) {
          if(StringUtils.isNotEmpty(resource.getValue()) && StringUtils.isNotEmpty(resource.getPermission())) {
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.