public class YAMLConfiguration extends AbstractYAMLBasedConfiguration implements FileBasedConfiguration, InputStreamSupport
A specialized hierarchical configuration class that is able to parse YAML documents.
BaseHierarchicalConfiguration.BuilderVisitor| Constructor and Description | 
|---|
YAMLConfiguration()
Creates a new instance of  
YAMLConfiguration. | 
YAMLConfiguration(HierarchicalConfiguration<ImmutableNode> c)
Creates a new instance of  
YAMLConfiguration as a copy of the
 specified configuration. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
dump(Writer out,
    org.yaml.snakeyaml.DumperOptions options)  | 
void | 
read(InputStream in)
Loads the configuration from the given input stream. 
 | 
void | 
read(InputStream in,
    org.yaml.snakeyaml.LoaderOptions options)  | 
void | 
read(Reader in)
Reads the content of this object from the given reader. 
 | 
void | 
read(Reader in,
    org.yaml.snakeyaml.LoaderOptions options)  | 
void | 
write(Writer out)
Writes the content of this object to the given writer. 
 | 
constructMap, loadchildConfigurationsAt, childConfigurationsAt, cloneNodeModel, configurationAt, configurationAt, configurationsAt, configurationsAt, createSubConfigurationForTrackedNode, getNodeModel, getSubConfigurationNodeSelector, getSubConfigurationParentModel, immutableChildConfigurationsAt, immutableConfigurationAt, immutableConfigurationAt, immutableConfigurationsAt, initSubConfigurationForThisParent, interpolatedConfiguration, subnodeConfigurationChanged, subsetaddNodes, addNodesInternal, addPropertyDirect, addPropertyInternal, clearInternal, clearPropertyDirect, clearTree, clearTreeInternal, clone, containsKeyInternal, fetchNodeList, getExpressionEngine, getKeysInternal, getKeysInternal, getMaxIndex, getMaxIndexInternal, getModel, getPropertyInternal, getRootElementName, getRootElementNameInternal, isEmptyInternal, nodeDefined, nodeKey, resolveAddKey, resolveKey, resolveNodeKey, resolveUpdateKey, setExpressionEngine, setPropertyInternal, sizeInternal, toStringaddErrorLogListener, addProperty, append, beginRead, beginWrite, clear, clearProperty, cloneInterpolator, containsKey, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setSynchronizer, setThrowExceptionOnMissing, size, unlockaddEventListener, clearErrorListeners, clearEventListeners, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEventsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddProperty, clear, clearProperty, getInterpolator, installInterpolator, setInterpolator, setProperty, subsetcontainsKey, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getDouble, getDouble, getDouble, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getKeys, getList, getList, getList, getList, getLong, getLong, getLong, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, immutableSubset, isEmpty, sizegetSynchronizer, lock, setSynchronizer, unlockpublic YAMLConfiguration()
YAMLConfiguration.public YAMLConfiguration(HierarchicalConfiguration<ImmutableNode> c)
YAMLConfiguration as a copy of the
 specified configuration.c - the configuration to be copiedpublic void read(Reader in) throws ConfigurationException
FileBasedFileHandler for reading data.read in interface FileBasedin - the readerConfigurationException - if a non-I/O related problem occurs, e.g.
         the data read does not have the expected formatpublic void read(Reader in, org.yaml.snakeyaml.LoaderOptions options) throws ConfigurationException
ConfigurationExceptionpublic void write(Writer out) throws ConfigurationException, IOException
FileBasedFileHandler for writing data.write in interface FileBasedout - the writerConfigurationException - if a non-I/O related problem occurs, e.g.
         the data read does not have the expected formatIOException - if an I/O error occurspublic void dump(Writer out, org.yaml.snakeyaml.DumperOptions options) throws ConfigurationException, IOException
ConfigurationExceptionIOExceptionpublic void read(InputStream in) throws ConfigurationException
read in interface InputStreamSupportin - the input streamConfigurationException - if an error occurspublic void read(InputStream in, org.yaml.snakeyaml.LoaderOptions options) throws ConfigurationException
ConfigurationExceptionCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.