Package org.spincast.core.utils
Class ResourceInfo
java.lang.Object
org.spincast.core.utils.ResourceInfo
Represents a file that can be taken from
the file system or from the classpath.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
The path to the resource.boolean
Is it a resource on the classpath or on the file system?
-
Constructor Details
-
ResourceInfo
-
-
Method Details
-
getPath
The path to the resource.If
isClasspathResource()
istrue
, 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?
-