mainPlugin/src/main/java/org/simpleyaml/configuration/file/FileConfiguration.java
/**
     * Loads this {@link FileConfiguration} from the specified reader.
     * <p>
     * All the values contained within this configuration will be removed,
     * leaving only settings and defaults, and the new values will be loaded
     * from the given stream.
     * <p>
     * If the file cannot be loaded for any reason, an exception will be
     * thrown.
     *
     * @param reader the reader to load from
     * @throws IOException                   thrown when underlying reader throws an IOException
     * @throws InvalidConfigurationException thrown when the reader does not
     *                                       represent a valid Configuration
     * @throws IllegalArgumentException      thrown when reader is null
     */
Loads this  FileConfiguration from the specified reader.

All the values contained within this configuration will be removed,
leaving only settings and defaults, and the new values will be loaded
from the given stream.

If the file cannot be loaded for any reason, an exception will be
thrown.

@param reader the reader to load from
@throws IOException                   thrown when underlying reader throws an IOException
@throws InvalidConfigurationException thrown when the reader does not
represent a valid Configuration
@throws IllegalArgumentException      thrown when reader is null
Loads this FileConfiguration from the specified reader . All the values contained within this configuration will be removed leaving only settings and defaults and the new values will be loaded from the given stream . If the file cannot be loaded for any reason an exception will be thrown . @param reader the reader to load from @throws IOException thrown when underlying reader throws an IOException @throws InvalidConfigurationException thrown when the reader does not represent a valid Configuration @throws IllegalArgumentException thrown when reader is null
public void load(final Reader reader) throws IOException, InvalidConfigurationException {
        try (final BufferedReader input = reader instanceof BufferedReader ? (BufferedReader) reader : new BufferedReader(reader)) {
            final StringBuilder builder = new StringBuilder();
            String line;
            while ((line = input.readLine()) != null) {
                builder.append(line);
                builder.append('\n');
            }
            this.loadFromString(builder.toString());
        }
    }
public void load ( final Reader reader ) throws IOException , InvalidConfigurationException { try ( final BufferedReader input = reader instanceof BufferedReader ? ( BufferedReader ) reader : new BufferedReader ( reader ) ) { final StringBuilder builder = new StringBuilder ( ) ; String line ; while ( ( line = input . readLine ( ) ) != null ) { builder . append ( line ) ; builder . append ( '\n' ) ; } this . loadFromString ( builder . toString ( ) ) ; } }
Loads this {@link FileConfiguration} from the specified reader.
Loads this { @link FileConfiguration } from the specified reader .