Package io.wcm.devops.conga.resource
Interface Resource
-
- All Superinterfaces:
Comparable<ResourceInfo>
,ResourceInfo
public interface Resource extends ResourceInfo
Abstraction for one single resource from filesystem or classpath.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getFileExtension()
InputStream
getInputStream()
long
getLastModified()
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface io.wcm.devops.conga.resource.ResourceInfo
exists, getCanonicalPath, getName, getPath
-
-
-
-
Method Detail
-
getLastModified
long getLastModified()
- Returns:
- Last modification date
-
getInputStream
InputStream getInputStream()
- Returns:
- File content as input stream
-
getFileExtension
default String getFileExtension()
- Returns:
- File extension
-
-