Class ResourceInfo

java.lang.Object
org.spincast.core.utils.ResourceInfo

public class ResourceInfo extends Object
Represents a file that can be taken from the file system or from the classpath.
  • Constructor Details

    • ResourceInfo

      public ResourceInfo(String path, boolean classpathResource)
  • Method Details

    • getPath

      public String getPath()
      The path to the resource.

      If isClasspathResource() is true, this should be a classpath path (starting with a "/" or not, this makes no difference). Otherwise it must be the absolute path to the resource on the file system.

    • isClasspathResource

      public boolean isClasspathResource()
      Is it a resource on the classpath or on the file system?