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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aInputStreamfor the data.longReturns the last modified date of the content.longReturns the content length.
-
Constructor Details
-
FileSystemContent
-
-
Method Details
-
getLastModified
public long getLastModified()Description copied from interface:ContentReturns the last modified date of the content.- Specified by:
getLastModifiedin interfaceContent
-
getLength
public long getLength()Description copied from interface:ContentReturns the content length. -
getInputStream
Description copied from interface:ContentReturns aInputStreamfor the data.- Specified by:
getInputStreamin interfaceContent- Throws:
FileNotFoundException
-