|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcynosurex.io.ConfigureINI
public class ConfigureINI
Reads and writes Windows INI configuration files.
Field Summary |
---|
Fields inherited from interface cynosurex.internal.CommonInterface |
---|
copyright, copyrightYears, notice, program, version |
Fields inherited from interface cynosurex.internal.AuthorCommon |
---|
author, copyrightSymbol, noticeMsg, rights |
Fields inherited from interface cynosurex.internal.CompanyCommon |
---|
company, email, website |
Constructor Summary | |
---|---|
ConfigureINI(java.io.File configFile)
Constructor. |
Method Summary | |
---|---|
boolean |
containsParameter(java.lang.String section,
java.lang.String parameter)
Whether this object contains the configuration parameter. |
boolean |
containsSection(java.lang.String section)
|
java.lang.String |
get(java.lang.String section,
java.lang.String parameter)
This method retrieves a value based on the specified section and parameter name. |
boolean |
getBoolean(java.lang.String section,
java.lang.String parameter)
This method retrieves a boolean value based on the specified section and parameter name. |
java.lang.Double |
getDouble(java.lang.String section,
java.lang.String parameter)
This method retrieves a double value based on the specified section and parameter name. |
java.lang.Float |
getFloat(java.lang.String section,
java.lang.String parameter)
This method retrieves a float value based on the specified section and parameter name. |
int |
getInteger(java.lang.String section,
java.lang.String parameter)
This method retrieves an integer value based on the specified section and parameter name. |
long |
getLong(java.lang.String section,
java.lang.String parameter)
This method retrieves a long value based on the specified section and parameter name. |
boolean |
isEmpty()
|
boolean |
isEmpty(java.lang.String section)
|
void |
put(java.lang.String section,
java.lang.String parameter,
java.lang.String value)
This method puts a configuration value into this object. |
boolean |
read()
Reads the configuration file. |
java.lang.String |
remove(java.lang.String section,
java.lang.String parameter)
This method removes a configuration value from this object. |
java.lang.String |
toString()
This method returns the entire configuration in the object in a String format. |
void |
write()
Writes the configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConfigureINI(java.io.File configFile)
configFile
- The INI configuration file object.Method Detail |
---|
public boolean containsSection(java.lang.String section)
public boolean containsParameter(java.lang.String section, java.lang.String parameter)
section
- The section to search the parameter for.
public java.lang.String get(java.lang.String section, java.lang.String parameter)
section
- The section name.parameter
- The parameter name.
public boolean getBoolean(java.lang.String section, java.lang.String parameter)
section
- The section name.parameter
- The parameter name.
public java.lang.Double getDouble(java.lang.String section, java.lang.String parameter)
section
- The section name.parameter
- The parameter name.
public java.lang.Float getFloat(java.lang.String section, java.lang.String parameter)
section
- The section name.parameter
- The parameter name.
public int getInteger(java.lang.String section, java.lang.String parameter)
section
- The section name.parameter
- The parameter name.
public long getLong(java.lang.String section, java.lang.String parameter)
section
- The section name.parameter
- The parameter name.
public boolean isEmpty()
public boolean isEmpty(java.lang.String section)
public void put(java.lang.String section, java.lang.String parameter, java.lang.String value)
section
- The section to place the value.parameter
- The parameter to place the value under.value
- The actual value.public boolean read()
public java.lang.String remove(java.lang.String section, java.lang.String parameter)
section
- The section to look for the parameter.parameter
- The parameter to remove.
public java.lang.String toString()
toString
in class java.lang.Object
public void write()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |