Package jetbrick.template.resource

Examples of jetbrick.template.resource.FileSystemResource


    @Override
    public Resource load(String name) {
        String pathname = PathUtils.combinePathName(basepath, name, false);
        File file = PathUtils.getCanonicalFile(new File(pathname));
        if (!file.exists()) return null;
        return new FileSystemResource(name, file, encoding);
    }
View Full Code Here

TOP

Related Classes of jetbrick.template.resource.FileSystemResource

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.