001package dk.netarkivet.common.utils.service; 002 003import java.nio.file.Path; 004import java.util.List; 005import java.util.regex.Pattern; 006 007public interface FileResolver { 008 009 /** 010 * Return a list of file-paths matching a given pattern. Empty if there 011 * are no matching files. 012 * @param filepattern String to match. 013 * @return The list of matching file-paths. 014 */ 015 List<Path> getPaths(Pattern filepattern); 016 017 /** 018 * Return a single path to a given file, or null if the file is not found. 019 * @param filename The filename to resolve. 020 * @return Path representing the file. 021 */ 022 Path getPath(String filename); 023 024}