org.elasticsearch.common.settings.loader
Class YamlSettingsLoader
java.lang.Object
org.elasticsearch.common.settings.loader.XContentSettingsLoader
org.elasticsearch.common.settings.loader.YamlSettingsLoader
- All Implemented Interfaces:
- SettingsLoader
public class YamlSettingsLoader
- extends XContentSettingsLoader
Settings loader that loads (parses) the settings in a yaml format by flattening them
into a map.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YamlSettingsLoader
public YamlSettingsLoader()
contentType
public XContentType contentType()
- Specified by:
contentType
in class XContentSettingsLoader
load
public Map<String,String> load(String source)
throws IOException
- Description copied from interface:
SettingsLoader
- Loads (parses) the settings from a source string.
- Specified by:
load
in interface SettingsLoader
- Overrides:
load
in class XContentSettingsLoader
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.