public class IniReader extends Object
; one type of comment # another type of comment (will be removed in future) [SectionNameWithNoSpaces] Key string = whatever you want
Constructor and Description |
---|
IniReader(InputStream input) |
IniReader(Reader input) |
IniReader(String pathname) |
Modifier and Type | Method and Description |
---|---|
boolean |
getPropertyBool(String section,
String key,
boolean defaultValue) |
char |
getPropertyChar(String section,
String key,
char defaultValue) |
<T extends Enum<T>> |
getPropertyEnum(String section,
String key,
T defaultValue,
Class<T> class1) |
float |
getPropertyFloat(String section,
String key,
float defaultValue) |
int |
getPropertyInt(String section,
String key,
int defaultValue) |
String |
getPropertyString(String section,
String key,
String defaultValue) |
double |
getPropertyTime(String section,
String key,
double defaultValue) |
boolean |
isDirty() |
String[] |
listSections() |
void |
save(String outputname) |
String[] |
sectionProperties(String section) |
void |
setProperty(String section,
String key,
Object value) |
public IniReader(String pathname) throws IOException
IOException
public IniReader(InputStream input) throws IOException
IOException
public IniReader(Reader input) throws IOException
IOException
public boolean isDirty()
public String[] listSections()
public void save(String outputname) throws IOException
IOException
public <T extends Enum<T>> T getPropertyEnum(String section, String key, T defaultValue, Class<T> class1)
Copyright © 2018 Ken Händel. All rights reserved.