|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.util.ini.IniFile
public class IniFile
Class to read in and write out ini files
Field Summary | |
---|---|
private java.util.HashMap<java.lang.String,IniFileNode> |
_nodey
Hash map of the IniFileNode, indexed by the name of the header |
Constructor Summary | |
---|---|
IniFile()
Default constructor |
Method Summary | |
---|---|
boolean |
addHeader(java.lang.String name)
Adds a new IniFileNode for the new header |
void |
eraseAll()
Removes all headers |
java.lang.String |
getData()
Returns a string containing the formatted .ini file data |
IniFileNode |
getHeader(java.lang.String name)
Return the IniFileNode for the given header |
boolean |
readIni(java.lang.String filename)
Reads the ini from a file |
boolean |
removeHeader(java.lang.String name)
Removes the given header |
boolean |
writeIni(java.lang.String filename)
Writes the ini to a file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.HashMap<java.lang.String,IniFileNode> _nodey
Constructor Detail |
---|
public IniFile()
Method Detail |
---|
public boolean addHeader(java.lang.String name)
name
- The title of the new header
public boolean removeHeader(java.lang.String name)
name
- The name of the header to be removed
public void eraseAll()
public IniFileNode getHeader(java.lang.String name)
name
- The name of the header
public boolean writeIni(java.lang.String filename)
filename
- The name of the ini file
public boolean readIni(java.lang.String filename)
filename
- The name of the ini file
public java.lang.String getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |