Example usage for org.apache.commons.collections ExtendedProperties load

List of usage examples for org.apache.commons.collections ExtendedProperties load

Introduction

In this page you can find the example usage for org.apache.commons.collections ExtendedProperties load.

Prototype

public synchronized void load(InputStream input, String enc) throws IOException 

Source Link

Document

Load the properties from the given input stream and using the specified encoding.

Usage

From source file:egovframework.rte.fdl.property.impl.EgovPropertyServiceImpl.java

/**
 * ?  ? egovProperties? //from  w w w .  j a v a2 s .  c o m
 * @param resources
 *        
 * @param encoding
 *        ?
 * @throws Exception
 */
private void loadPropertyRes(Resource resource, String encoding) throws Exception {
    if (EgovPropertyService.LOGGER.isDebugEnabled()) {
        EgovPropertyService.LOGGER.debug(messageSource.getMessage("debug.properties.filename",
                new String[] { resource.getFilename(), encoding }, Locale.getDefault()));
    }
    ExtendedProperties egovProperty = new ExtendedProperties();
    egovProperty.load(resource.getInputStream(), encoding);
    egovProperties.combine(egovProperty);
}