public class ContentFileReader extends AbstractReader implements CacheableProcessingComponent
| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
_allowedFormats |
private Content |
_content |
private int |
_cropHeight |
private int |
_cropWidth |
private File |
_file |
private int |
_height |
private int |
_maxHeight |
private int |
_maxWidth |
private String |
_path |
private boolean |
_readForDownload |
private int |
_width |
objectModel, out, parameters, resolver, source| Constructor and Description |
|---|
ContentFileReader() |
| Modifier and Type | Method and Description |
|---|---|
protected RichText |
_getMeta(CompositeMetadata meta,
String metadataName)
Get the rich text meta
|
protected boolean |
_isImage()
Determines if the file is an image
|
void |
generate() |
Serializable |
getKey() |
long |
getLastModified() |
String |
getMimeType() |
SourceValidity |
getValidity() |
void |
recycle() |
void |
setup(SourceResolver res,
Map objModel,
String src,
Parameters par) |
setOutputStream, shouldSetContentLengthenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate int _width
private int _height
private int _maxWidth
private int _maxHeight
private int _cropWidth
private int _cropHeight
private boolean _readForDownload
private Collection<String> _allowedFormats
public ContentFileReader()
public void setup(SourceResolver res, Map objModel, String src, Parameters par) throws ProcessingException, SAXException, IOException
setup in interface SitemapModelComponentsetup in class AbstractReaderProcessingExceptionSAXExceptionIOExceptionpublic Serializable getKey()
getKey in interface CacheableProcessingComponentpublic SourceValidity getValidity()
getValidity in interface CacheableProcessingComponentpublic long getLastModified()
getLastModified in interface ReadergetLastModified in class AbstractReaderpublic String getMimeType()
getMimeType in interface SitemapOutputComponentgetMimeType in class AbstractReaderpublic void generate() throws IOException, SAXException, ProcessingException
generate in interface ReaderIOExceptionSAXExceptionProcessingExceptionpublic void recycle()
recycle in interface Recyclablerecycle in class AbstractReaderprotected boolean _isImage()
true if file is a imageprotected RichText _getMeta(CompositeMetadata meta, String metadataName)
meta - The composite metametadataName - The metadata name (with /)