class DirectoryResource implements Resource {

    @Override
    public InputStream getResourceAsStream(String location) {
        InputStream result = null;
        File file = new File(rootDirectory, location);

        try {
            result = new FileInputStream(file);
        } catch (FileNotFoundException exception) {
        }

        return result;
    }

    public  DirectoryResource();
    public  DirectoryResource(String rootDirectory);
    public  DirectoryResource(File rootDirectory);

}