Class IniFile
java.lang.Object
com.l2fprod.util.IniFile
- Version:
- $Revision: 1.5 $, $Date: 2005/11/19 09:26:22 $
- Author:
- $Author: l2fprod $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSection(String section) Adds a feature to the Section attribute of the IniFile objectbooleangetKeyBooleanValue(String section, String key, boolean defaultValue) return true if the value of the key is yes/true, false if no/false, defaultValue in all other cases.intgetKeyIntValue(String section, String key) Gets the KeyIntValue attribute of the IniFile objectintgetKeyIntValue(String section, String key, int defaultValue) Gets the KeyIntValue attribute of the IniFile objectString[][]getKeysAndValues(String aSection) Gets the KeysAndValues attribute of the IniFile objectgetKeyValue(String section, String key) Gets the KeyValue attribute of the IniFile objectgetSection(String section) Gets the Section attribute of the IniFile objectGets the Sections attribute of the IniFile objectgetSectionWhere(String[][] query) booleanisNullOrEmpty(String section, String key) Gets the NullOrEmpty attribute of the IniFile objectvoidload(InputStream in) Description of the MethodvoidDescription of the Methodstatic voidSimple test functionvoidremoveSection(String section) Description of the Methodvoidsave(OutputStream out) Description of the MethodvoidDescription of the MethodvoidsetKeyValue(String section, String key, String value) Sets the KeyValue attribute of the IniFile object
-
Constructor Details
-
IniFile
public IniFile()Constructor for the IniFile object -
IniFile
Constructor for the IniFile object- Parameters:
filename- Description of Parameter- Throws:
FileNotFoundException- Description of Exception
-
IniFile
Constructor for the IniFile object- Parameters:
url- Description of Parameter- Throws:
IOException- Description of Exception
-
IniFile
Constructor for the IniFile object- Parameters:
input- Description of Parameter
-
-
Method Details
-
setKeyValue
-
getSections
Gets the Sections attribute of the IniFile object- Returns:
- The Sections value
-
getSection
-
isNullOrEmpty
-
getKeyValue
-
getKeyIntValue
-
getKeyIntValue
-
getKeyBooleanValue
-
getKeysAndValues
-
getSectionWhere
-
load
Description of the Method- Parameters:
filename- Description of Parameter- Throws:
FileNotFoundException- Description of Exception
-
save
Description of the Method- Parameters:
filename- Description of Parameter- Throws:
IOException- Description of Exception
-
load
Description of the Method- Parameters:
in- Description of Parameter
-
save
Description of the Method- Parameters:
out- Description of Parameter
-
addSection
Adds a feature to the Section attribute of the IniFile object- Parameters:
section- The feature to be added to the Section attribute
-
removeSection
Description of the Method- Parameters:
section- Description of Parameter
-
main
-