org.elasticsearch.common.settings.loader
Interface SettingsLoader

All Known Implementing Classes:
JsonSettingsLoader, PropertiesSettingsLoader, XContentSettingsLoader, 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.


Nested Class Summary
static class SettingsLoader.Helper
           
 
Method Summary
 Map<String,String> load(byte[] source)
          Loads (parses) the settings from a source bytes.
 Map<String,String> load(String source)
          Loads (parses) the settings from a source string.
 

Method Detail

load

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

Throws:
IOException

load

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

Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.