Example usage for org.apache.commons.configuration2.io FileLocator FileLocator

List of usage examples for org.apache.commons.configuration2.io FileLocator FileLocator

Introduction

In this page you can find the example usage for org.apache.commons.configuration2.io FileLocator FileLocator.

Prototype

public FileLocator(final FileLocatorBuilder builder) 

Source Link

Document

Creates a new instance of FileLocatorImpl and initializes it from the given builder instance

Usage

From source file:nl.imvertor.common.wrapper.XMLConfiguration.java

public Transformer createTransformer() throws ConfigurationException {
    FileLocatorBuilder builder = FileLocatorUtils.fileLocator();
    builder.basePath(Configurator.getInstance().getConfigFilepath());
    builder.encoding("UTF-8");
    FileLocator locator = new FileLocator(builder);
    initFileLocator(locator);//from w  w w . jav  a 2  s  .c  om
    return super.createTransformer();
}