org.elasticsearch.common.settings.loader
Class JsonSettingsLoader

java.lang.Object
  extended by org.elasticsearch.common.settings.loader.JsonSettingsLoader
All Implemented Interfaces:
SettingsLoader

public class JsonSettingsLoader
extends java.lang.Object
implements SettingsLoader

Settings loader that loads (parses) the settings in a json format by flattening them into a map.


Constructor Summary
JsonSettingsLoader()
           
 
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.
 java.util.Map<java.lang.String,java.lang.String> load(XContentParser jp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonSettingsLoader

public JsonSettingsLoader()
Method Detail

load

public java.util.Map<java.lang.String,java.lang.String> load(java.lang.String source)
                                                      throws java.io.IOException
Description copied from interface: SettingsLoader
Loads (parses) the settings from a source string.

Specified by:
load in interface SettingsLoader
Throws:
java.io.IOException

load

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

Specified by:
load in interface SettingsLoader
Throws:
java.io.IOException

load

public java.util.Map<java.lang.String,java.lang.String> load(XContentParser jp)
                                                      throws java.io.IOException
Throws:
java.io.IOException