Class ContentResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.craftercms.search.commons.utils.ContentResource
- All Implemented Interfaces:
- org.springframework.core.io.InputStreamSource,- org.springframework.core.io.Resource
public class ContentResource
extends org.springframework.core.io.AbstractResource
A 
Resource that's basically a facade to a Content object.- Author:
- avasquez
- 
Constructor SummaryConstructorsConstructorDescriptionContentResource(org.craftercms.core.service.Content content, String filename) 
- 
Method SummaryMethods inherited from class org.springframework.core.io.AbstractResourcecreateRelative, equals, getFile, getFileForLastModifiedCheck, getURI, getURL, hashCode, isFile, isOpen, isReadable, readableChannel, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.core.io.ResourcegetContentAsByteArray, getContentAsString
- 
Constructor Details- 
ContentResource
 
- 
- 
Method Details- 
getDescription
- 
getFilename- Specified by:
- getFilenamein interface- org.springframework.core.io.Resource
- Overrides:
- getFilenamein class- org.springframework.core.io.AbstractResource
 
- 
existspublic boolean exists()- Specified by:
- existsin interface- org.springframework.core.io.Resource
- Overrides:
- existsin class- org.springframework.core.io.AbstractResource
 
- 
contentLength- Specified by:
- contentLengthin interface- org.springframework.core.io.Resource
- Overrides:
- contentLengthin class- org.springframework.core.io.AbstractResource
- Throws:
- IOException
 
- 
lastModified- Specified by:
- lastModifiedin interface- org.springframework.core.io.Resource
- Overrides:
- lastModifiedin class- org.springframework.core.io.AbstractResource
- Throws:
- IOException
 
- 
getInputStream- Throws:
- IOException
 
 
-