public class IniReader
extends java.lang.Object
Constructor and Description |
---|
IniReader(java.io.InputStream input) |
IniReader(java.io.Reader input) |
IniReader(java.lang.String pathname) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getMap()
This method returns the Map structure that gives for each key (= section name of the ini file)
a Map that consists of further key-value pairs (configuration parameters)
|
boolean |
getPropertyBool(java.lang.String section,
java.lang.String key,
boolean defaultValue)
This method returns a specific boolean value stored in an ini-File with respect to a given section and a key
|
int |
getPropertyInt(java.lang.String section,
java.lang.String key,
int defaultValue)
This method returns a specific integer value stored in an ini-File with respect to a given section and a key
|
java.lang.String |
getPropertyString(java.lang.String section,
java.lang.String key,
java.lang.String defaultValue)
This method returns a specific string value stored in an ini-File with respect to a given section and a key
|
public IniReader(java.lang.String pathname) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public IniReader(java.io.InputStream input) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public IniReader(java.io.Reader input) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public java.lang.String getPropertyString(java.lang.String section, java.lang.String key, java.lang.String defaultValue)
section
- key
- defaultValue
- public int getPropertyInt(java.lang.String section, java.lang.String key, int defaultValue)
section
- key
- defaultValue
- public boolean getPropertyBool(java.lang.String section, java.lang.String key, boolean defaultValue)
section
- key
- defaultValue
- public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getMap()