Class MapResourceFinder

    • Field Detail

      • map

        private final java.util.Map<java.lang.String,​byte[]> map
      • lastModified

        private long lastModified
    • Constructor Detail

      • MapResourceFinder

        public MapResourceFinder​(java.util.Map<java.lang.String,​byte[]> map)
    • Method Detail

      • setLastModified

        public final void setLastModified​(long lastModified)
        Parameters:
        lastModified - The return value of Resource.lastModified() for the next resources found
      • findResource

        public final Resource findResource​(java.lang.String resourceName)
        Description copied from class: ResourceFinder
        Find a resource by name and return it as a Resource object.
        Specified by:
        findResource in class ResourceFinder
        Parameters:
        resourceName - Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"
        Returns:
        null if the resource could not be found