public class INIFileConfiguration
extends org.apache.commons.configuration.AbstractFileConfiguration
# and ;
Supported value assignment character is =| Constructor and Description |
|---|
INIFileConfiguration()
Create a new empty INI configuration.
|
INIFileConfiguration(File file)
Create and load the INI configuration from the given file.
|
INIFileConfiguration(String fileName)
Create and load the INI configuration from the given file.
|
INIFileConfiguration(URL url)
Create and load the INI configuration from the given URL.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getComments(String key) |
String |
getInlineComment(String key) |
String |
getProperty(String key) |
String |
getPropertyNonInterpolated(String key) |
Set<String> |
getSections() |
boolean |
isAutoSort() |
protected boolean |
isCommentLine(String line) |
protected boolean |
isSectionLine(String line) |
void |
load(Reader in) |
protected Tuple2<String,String> |
parseValueLine(String value) |
void |
save(Writer out) |
void |
setAutoSort(boolean isAutoSort) |
void |
setComments(String key,
String... comments) |
void |
setProperty(String key,
String value,
String inlineComment) |
addProperty, clearProperty, clone, closeSilent, configurationChanged, containsKey, enterNoReload, exitNoReload, fireEvent, getBasePath, getEncoding, getFile, getFileName, getFileSystem, getKeys, getPath, getReloadingStrategy, getReloadLock, getURL, isAutoSave, isEmpty, load, load, load, load, load, load, possiblySave, refresh, reload, reload, resetFileSystem, save, save, save, save, save, save, setAutoSave, setBasePath, setEncoding, setFile, setFileName, setFileSystem, setPath, setProperty, setReloadingStrategy, setURLaddPropertyDirect, clear, clearPropertyDirectaddErrorLogListener, append, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setThrowExceptionOnMissing, subsetaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEventsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getList, getList, getLong, getLong, getLong, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, subsetpublic INIFileConfiguration()
public INIFileConfiguration(File file) throws org.apache.commons.configuration.ConfigurationException
file - The INI file to load.org.apache.commons.configuration.ConfigurationException - If an error occurs while loading the filepublic INIFileConfiguration(String fileName) throws org.apache.commons.configuration.ConfigurationException
fileName - The name or path of the INI file to load.org.apache.commons.configuration.ConfigurationException - If an error occurs while loading the filepublic INIFileConfiguration(URL url) throws org.apache.commons.configuration.ConfigurationException
url - The URL of the INI file to load.org.apache.commons.configuration.ConfigurationException - If an error occurs while loading the filepublic String[] getComments(String key)
public String getInlineComment(String key)
public String getProperty(String key)
getProperty in interface org.apache.commons.configuration.ConfigurationgetProperty in class org.apache.commons.configuration.AbstractFileConfigurationpublic boolean isAutoSort()
protected boolean isCommentLine(String line)
protected boolean isSectionLine(String line)
public void load(Reader in) throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionprotected Tuple2<String,String> parseValueLine(String value)
public void save(Writer out) throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void setAutoSort(boolean isAutoSort)
public void setComments(String key, String... comments)
comments - the comments for the given section / propertyCopyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.