Class ResourceUtils


  • public abstract class ResourceUtils
    extends Object
    Utilities for manipulating resource paths and URLs.
    • Method Detail

      • getUrls

        public static List<StringgetUrls​(String path,
                                           ClassLoader classLoader)
        Return URLs from a given source path. Source paths can be simple file locations (/some/file.java) or wildcard patterns (/some/**). Additionally the prefixes "file:", "classpath:" and "classpath*:" can be used for specific path types.
        Parameters:
        path - the source path
        classLoader - the class loader or null to use the default
        Returns:
        a list of URLs