Section Maps

Config sections can be retrieved in-bulk using {@link oaj.config.Config#getSectionAsMap(String)}.

##### Example:

// Example config file [MyAddress] street = 123 Main Street city = Anywhere state = NY zip = 12345

// Example usage Config config = Config.create("MyConfig.cfg").build(); OMap omap = config.getSectionAsMap("MyAddress"); String street = omap.getString("street"); String city = omap.getString("city"); String state = omap.getString("state"); int zip = omap.getInt("zip");

Maps created this way are snapshot copies of the section at the time of the method call.