Package sidplay.ini
Klasse IniReader
java.lang.Object
sidplay.ini.IniReader
This class can read properties files in Microsoft .ini file style and
provides an interface to read string, integer and boolean values. The .ini
files has the following structure:
; one type of comment # another type of comment (will be removed in future) [SectionNameWithNoSpaces] Key string = whatever you want
- Autor:
- Antti S. Lankila
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal booleangetPropertyBool(String section, String key, boolean defaultValue) final chargetPropertyChar(String section, String key, char defaultValue) final <T extends Enum<T>>
TgetPropertyEnum(String section, String key, T defaultValue, Class<T> class1) final FilegetPropertyFile(String section, String key, File defaultValue) final floatgetPropertyFloat(String section, String key, float defaultValue) final float[]getPropertyFloats(String section, String key, float[] defaultValue) final intgetPropertyInt(String section, String key, int defaultValue) final int[]getPropertyInts(String section, String key, int[] defaultValue) final shortgetPropertyShort(String section, String key, short defaultValue) final StringgetPropertyString(String section, String key, String defaultValue) final doublegetPropertyTime(String section, String key, double defaultValue) private voidfinal booleanisDirty()final String[]private doublefinal voidfinal String[]sectionProperties(String section) final voidsetProperty(String section, String key, Object value) final voidsetPropertyArray(String section, String key, Object... value)
-
Felddetails
-
COMMENT
Commented line syntax.
e.g. "; comment" or "# comment" -
SECTION_HEADING
Section heading syntax
e.g. "[Heading]" -
KEY_VALUE
Key value syntax
e.g. "Key String=Value String" -
sections
-
dirty
private boolean dirty
-
-
Konstruktordetails
-
IniReader
- Löst aus:
IOException
-
IniReader
- Löst aus:
IOException
-
IniReader
- Löst aus:
IOException
-
-
Methodendetails
-
isDirty
public final boolean isDirty() -
listSections
-
sectionProperties
-
initialize
- Löst aus:
IOException
-
save
- Löst aus:
IOException
-
getPropertyString
-
getPropertyFloats
-
getPropertyFloat
-
getPropertyInts
-
getPropertyInt
-
getPropertyShort
-
getPropertyBool
-
getPropertyChar
-
getPropertyTime
-
getPropertyFile
-
getPropertyEnum
-
setPropertyArray
-
setProperty
-
parseTime
-