Package org.craftercms.core.service.impl
Class ResourceBasedContent
- java.lang.Object
-
- org.craftercms.core.service.impl.ResourceBasedContent
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.core.io.ResourceresourceThe resource
-
Constructor Summary
Constructors Constructor Description ResourceBasedContent(org.springframework.core.io.Resource resource)
-
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.
-
-
-
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 IOException
Description copied from interface:ContentReturns aInputStreamfor the data.- Specified by:
getInputStreamin interfaceContent- Throws:
IOException
-
-