Class FileSystemContent
- java.lang.Object
-
- org.craftercms.core.store.impl.filesystem.FileSystemContent
-
-
Constructor Summary
Constructors Constructor Description FileSystemContent(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()Returns aInputStreamfor the data.longgetLastModified()Returns the last modified date of the content.longgetLength()Returns the content length.
-
-
-
Constructor Detail
-
FileSystemContent
public FileSystemContent(File file)
-
-
Method Detail
-
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
public InputStream getInputStream() throws FileNotFoundException
Description copied from interface:ContentReturns aInputStreamfor the data.- Specified by:
getInputStreamin interfaceContent- Throws:
FileNotFoundException
-
-