public class IniHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
extractKeyNameAndValueFromLine(java.lang.String line,
java.lang.String[] affectation)
Gets the key name and value in a key affectation line.
|
static java.lang.String |
extractSectionNameFromLine(java.lang.String line,
java.lang.String[] sectionStart,
java.lang.String[] sectionEnd)
Gets the section name from a section declaration line (typically in "[section]", "section" is returned).
|
public static java.lang.String[] extractKeyNameAndValueFromLine(java.lang.String line, java.lang.String[] affectation)
line
- the INI line.affectation
- characters used to separate keys from values.null
is returned.public static java.lang.String extractSectionNameFromLine(java.lang.String line, java.lang.String[] sectionStart, java.lang.String[] sectionEnd)
line
- the line.sectionStart
- characters used to represent a section starting.sectionEnd
- characters used to represent a section ending.null
is returned.