org.elasticsearch.common.settings.loader
Interface SettingsLoader

All Known Implementing Classes:
JsonSettingsLoader, PropertiesSettingsLoader, YamlSettingsLoader

public interface SettingsLoader

Provides the ability to load settings (in the form of a simple Map) from the actual source content that represents them.


Method Summary
 java.util.Map<java.lang.String,java.lang.String> load(byte[] source)
          Loads (parses) the settings from a source bytes.
 java.util.Map<java.lang.String,java.lang.String> load(java.lang.String source)
          Loads (parses) the settings from a source string.
 

Method Detail

load

java.util.Map<java.lang.String,java.lang.String> load(java.lang.String source)
                                                      throws java.io.IOException
Loads (parses) the settings from a source string.

Throws:
java.io.IOException

load

java.util.Map<java.lang.String,java.lang.String> load(byte[] source)
                                                      throws java.io.IOException
Loads (parses) the settings from a source bytes.

Throws:
java.io.IOException