All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ccl.util.IniFile

java.lang.Object
   |
   +----ccl.util.IniFile

public class IniFile
extends Object
This class is copyrighted by 1996 Besiex Software (Benjarmin Cabell) and distributed under the terms of the Gnu Library General Public License. This class reads Windows like .ini files and can set values as well. The standard Java way is to use property files instead, but if you have legacy code which uses ini files or if you want to access for example a kde .kderc configuration file, then this class is for you.

Version:
$Id: IniFile.java,v 1.15 2000/04/05 16:56:47 clemens Exp clemens $
Author:
Benjamin Cabell

Variable Index

 o _status
 o FILE_ERROR
 o KEY_ERROR
 o OK
 o SECTION_ERROR

Constructor Index

 o IniFile()

Method Index

 o _getKeyValue(String, String)
 o _getSection(String, String)
 o getKeyValue(String, String, String)
 o getKeyValue(String, String, String, String)
 o getStatus()
 o setKeyValue(String, String, String, String)

Variables

 o OK
 public static final int OK
 o FILE_ERROR
 public static final int FILE_ERROR
 o SECTION_ERROR
 public static final int SECTION_ERROR
 o KEY_ERROR
 public static final int KEY_ERROR
 o _status
 private static int _status

Constructors

 o IniFile
 public IniFile()

Methods

 o _getSection
 private static String _getSection(String sSectionName_,
                                   String sIniFileContent_)
 o _getKeyValue
 private static String _getKeyValue(String sKey_,
                                    String sSectionContent_)
 o getKeyValue
 public static String getKeyValue(String sIniFullFileName_,
                                  String sSectionName_,
                                  String sKey_)
 o getKeyValue
 public static String getKeyValue(String sIniFullFileName_,
                                  String sSectionName_,
                                  String sKey_,
                                  String sIniFileContent_)
 o getStatus
 public static int getStatus()
 o setKeyValue
 public static void setKeyValue(String sIniFileName_,
                                String sSection_,
                                String sKey_,
                                String sValue_)

All Packages  Class Hierarchy  This Package  Previous  Next  Index