Class FileSystemContent
java.lang.Object
org.craftercms.core.store.impl.filesystem.FileSystemContent
- All Implemented Interfaces:
Content
Gives access to the content of a file in the local filesystem
- Since:
- 3.1.4
- Author:
- avasquez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns aInputStream
for the data.long
Returns the last modified date of the content.long
Returns the content length.
-
Constructor Details
-
FileSystemContent
-
-
Method Details
-
getLastModified
public long getLastModified()Description copied from interface:Content
Returns the last modified date of the content.- Specified by:
getLastModified
in interfaceContent
-
getLength
public long getLength()Description copied from interface:Content
Returns the content length. -
getInputStream
Description copied from interface:Content
Returns aInputStream
for the data.- Specified by:
getInputStream
in interfaceContent
- Throws:
FileNotFoundException
-