Package io.wcm.devops.conga.resource
Interface Resource
- All Superinterfaces:
Comparable<ResourceInfo>,ResourceInfo
Abstraction for one single resource from filesystem or classpath.
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringGets the file extension of this resource.Gets the content of this resource.longGets the last modification date of this resource.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface io.wcm.devops.conga.resource.ResourceInfo
exists, getCanonicalPath, getName, getPath
-
Method Details
-
getLastModified
long getLastModified()Gets the last modification date of this resource.- Returns:
- Last modification date
-
getInputStream
InputStream getInputStream()Gets the content of this resource.- Returns:
- File content as input stream
-
getFileExtension
Gets the file extension of this resource.- Returns:
- File extension
-