Example usage for org.apache.commons.configuration XMLPropertiesConfiguration getKeys

List of usage examples for org.apache.commons.configuration XMLPropertiesConfiguration getKeys

Introduction

In this page you can find the example usage for org.apache.commons.configuration XMLPropertiesConfiguration getKeys.

Prototype

public Iterator getKeys() 

Source Link

Document

Returns an Iterator with the keys contained in this configuration.

Usage

From source file:AIR.Common.Configuration.ConfigurationSection.java

public ConfigurationSection updateProperties(URL url) throws ConfigurationException {
    XMLPropertiesConfiguration config = new XMLPropertiesConfiguration(url);
    Iterator<String> key_iterator = config.getKeys();
    while (key_iterator.hasNext()) {
        String key = key_iterator.next();
        this.put(key, config.getString(key));
    }/*from   w  w  w  .j  ava 2s.c  om*/
    return this;
}