net.sf.antcontrib.inifile
public class IniFile extends Object
Constructor Summary | |
---|---|
IniFile()
Create a new IniFile object |
Method Summary | |
---|---|
String | getProperty(String section, String property)
Gets a named property from a specific section |
IniSection | getSection(String name)
Gets the IniSection with the given name |
List | getSections()
Gets the List of IniSection objects contained in this IniFile |
void | read(Reader reader)
Reads from a Reader into the current IniFile instance. |
void | removeProperty(String section, String property)
Removes a property from a section. |
void | removeSection(String name)
Removes an entire section from the IniFile |
void | setProperty(String section, String property, String value)
Sets the value of a property in a given section. |
void | setSection(IniSection section)
Sets an IniSection object. |
void | write(Writer writer)
Writes the current iniFile instance to a Writer object for
serialization. |
Parameters: section The name of the section property The name of the property
Returns: The property value, or null, if either the section or property does not exist.
Parameters: name the name of the section
Returns: a List of IniSection objects
Parameters: reader The reader to read from.
Throws: IOException
Parameters: section The name of the section property The name of the property
Parameters: name The name of the section to remove
Parameters: section The name of the section property The name of the property value The value of the property
Parameters: section The section to set.
Parameters: writer The writer to write to
Throws: IOException