List of usage examples for org.apache.commons.configuration2 INIConfiguration INIConfiguration
public INIConfiguration()
From source file:com.akamai.edgegrid.signer.EdgeRcClientCredentialProvider.java
/** * Loads an EdgeRc configuration file and returns an {@link EdgeRcClientCredentialProvider} to * read {@link ClientCredential}s from it. * * @param reader an open {@link Reader} to an EdgeRc file * @param section a config section ({@code null} for the default section) * @throws ConfigurationException If an error occurs while reading the configuration * @throws IOException if an I/O error occurs *//*from ww w. java2s . c o m*/ public EdgeRcClientCredentialProvider(Reader reader, String section) throws ConfigurationException, IOException { Validate.notNull(reader, "reader cannot be null"); configuration = new INIConfiguration(); configuration.read(reader); this.defaultSectionName = section; }