public class IniFileReader extends Object
Constructor and Description |
---|
IniFileReader(InputStream configFile) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolValue(String name,
boolean default_value)
get boolean value from config file
|
InputStream |
getConfFile()
get the config filename
|
int |
getIntValue(String name,
int default_value)
get int value from config file
|
String |
getStrValue(String name)
get string value from config file
|
String[] |
getValues(String name)
get all values from config file
|
public IniFileReader(InputStream configFile) throws IOException
configFile
- config fileIOException
public InputStream getConfFile()
public String getStrValue(String name)
name
- item name in config filepublic int getIntValue(String name, int default_value)
name
- item name in config filedefault_value
- the default valuepublic boolean getBoolValue(String name, boolean default_value)
name
- item name in config filedefault_value
- the default valueCopyright © 2018 lodsve. All rights reserved.