Package railo.commons.io.ini

Examples of railo.commons.io.ini.IniFile


  public static String call(PageContext pc , String fileName, String section, String key) throws PageException {
        try {
          Resource res = ResourceUtil.toResourceNotExisting(pc,fileName);
            if(!res.isFile()) return "";
             
          IniFile ini = new IniFile(res);
            String str=ini.getKeyValueEL(section, key);
            if(str==null) return "";
            return str;
        }
        catch (IOException e) {
            throw Caster.toPageException(e);
View Full Code Here


public final class SetProfileString implements Function {
  public static String call(PageContext pc , String fileName, String section, String key, String value) throws PageException {
      try {
        Resource res = ResourceUtil.toResourceNotExisting(pc,fileName);
            IniFile ini = new IniFile(res);
            ini.setKeyValue(section, key,value);
            ini.save();
        }
        catch (IOException e) {
            throw Caster.toPageException(e);
        }
        return "";
View Full Code Here

TOP

Related Classes of railo.commons.io.ini.IniFile

Copyright © 2018 www.massapicom. 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.