Class DirectoryResourceFinder


  • public class DirectoryResourceFinder
    extends FileResourceFinder
    A FileResourceFinder that finds file resources in a directory. The name of the file is constructed by concatenating a dirctory name with the resource name such that slashes in the resource name map to file separators.
    • Constructor Detail

      • DirectoryResourceFinder

        public DirectoryResourceFinder​(java.io.File directory)
        Parameters:
        directory - the directory to use as the search base
    • Method Detail

      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • findResourceAsFile

        protected final java.io.File findResourceAsFile​(java.lang.String resourceName)
        Description copied from class: FileResourceFinder
        Converts a given resource resource name into a File.
        Specified by:
        findResourceAsFile in class FileResourceFinder