Package org.apache.commons.configuration.io

Examples of org.apache.commons.configuration.io.FileLocator$FileLocatorBuilder


     * @param name the file name
     * @return the URL pointing to the file
     */
    private static URL locate(FileSystem fs, String basePath, String name)
    {
        FileLocator locator =
                FileLocatorUtils.fileLocator().fileSystem(fs)
                        .basePath(basePath).fileName(name).create();
        return FileLocatorUtils.locate(locator);
    }
View Full Code Here


     * @return the URL of the include file or <b>null</b> if it cannot be
     *         resolved
     */
    private URL locateIncludeFile(String basePath, String fileName)
    {
        FileLocator includeLocator =
                FileLocatorUtils.fileLocator(locator).sourceURL(null)
                        .basePath(basePath).fileName(fileName).create();
        return FileLocatorUtils.locate(includeLocator);
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.configuration.io.FileLocator$FileLocatorBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.