Interface ConfigSource
-
- All Known Implementing Classes:
ConfigProcessor
public interface ConfigSourceA provider for a configuration node, one half of a loader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ConfigurationNoderead(java.io.Reader reader)Read a node from the provided reader.ConfigurationNoderead(java.io.Reader reader, java.util.function.UnaryOperator<ConfigurationOptions> optionsConfiguration)Read a node from the provided reader.
-
-
-
Method Detail
-
read
default ConfigurationNode read(java.io.Reader reader) throws ConfigurateException
Read a node from the provided reader.- Parameters:
reader- the reader to use- Returns:
- a loaded node
- Throws:
ConfigurateException- if any error occurs while loading
-
read
ConfigurationNode read(java.io.Reader reader, java.util.function.UnaryOperator<ConfigurationOptions> optionsConfiguration) throws ConfigurateException
Read a node from the provided reader.- Parameters:
reader- the reader to useoptionsConfiguration- an operator to tweak the options used in this source- Returns:
- a loaded node
- Throws:
ConfigurateException- if any error occurs while loading
-
-