All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webit.script.loaders.impl.FileLoader Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
// Copyright (c) 2013, Webit Team. All Rights Reserved.
package webit.script.loaders.impl;

import webit.script.exceptions.ResourceNotFoundException;
import webit.script.loaders.AbstractLoader;
import webit.script.loaders.Resource;
import webit.script.loaders.impl.resources.FileResource;

/**
 *
 * @author Zqq
 */
public class FileLoader extends AbstractLoader {

    public Resource get(String name) throws ResourceNotFoundException {
        return new FileResource(getRealPath(name), encoding);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy