Package org.ini4j
Class ConfigParser
Object
org.ini4j.ConfigParser
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
static class
static final class
static final class
static final class
static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSection
(String section) defaults()
boolean
getBoolean
(String section, String option) double
float
protected Ini
getIni()
int
long
boolean
boolean
hasSection
(String sectionName) void
void
read
(InputStream stream) void
void
void
boolean
removeOption
(String sectionName, String optionName) boolean
removeSection
(String sectionName) sections()
void
void
void
write
(OutputStream stream) void
-
Constructor Details
-
ConfigParser
public ConfigParser() -
ConfigParser
-
-
Method Details
-
getBoolean
public boolean getBoolean(String section, String option) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
getDouble
public double getDouble(String section, String option) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
getFloat
public float getFloat(String section, String option) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
getInt
public int getInt(String section, String option) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
getLong
public long getLong(String section, String option) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
addSection
-
defaults
-
get
public String get(String section, String option) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
get
public String get(String section, String option, boolean raw) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
get
public String get(String sectionName, String optionName, boolean raw, Map<String, String> variables) throws ConfigParser.NoSectionException, ConfigParser.NoOptionException, ConfigParser.InterpolationException -
hasOption
-
hasSection
-
items
public List<Map.Entry<String,String>> items(String sectionName) throws ConfigParser.NoSectionException, ConfigParser.InterpolationMissingOptionException -
items
public List<Map.Entry<String,String>> items(String sectionName, boolean raw) throws ConfigParser.NoSectionException, ConfigParser.InterpolationMissingOptionException -
items
public List<Map.Entry<String,String>> items(String sectionName, boolean raw, Map<String, String> variables) throws ConfigParser.NoSectionException, ConfigParser.InterpolationMissingOptionException -
options
- Throws:
ConfigParser.NoSectionException
-
read
-
read
-
read
-
read
-
read
-
removeOption
public boolean removeOption(String sectionName, String optionName) throws ConfigParser.NoSectionException - Throws:
ConfigParser.NoSectionException
-
removeSection
-
sections
-
set
public void set(String sectionName, String optionName, Object value) throws ConfigParser.NoSectionException - Throws:
ConfigParser.NoSectionException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
getIni
-