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, shouldSetContentLength
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private 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 SitemapModelComponent
setup
in class AbstractReader
ProcessingException
SAXException
IOException
public Serializable getKey()
getKey
in interface CacheableProcessingComponent
public SourceValidity getValidity()
getValidity
in interface CacheableProcessingComponent
public long getLastModified()
getLastModified
in interface Reader
getLastModified
in class AbstractReader
public String getMimeType()
getMimeType
in interface SitemapOutputComponent
getMimeType
in class AbstractReader
public void generate() throws IOException, SAXException, ProcessingException
generate
in interface Reader
IOException
SAXException
ProcessingException
public void recycle()
recycle
in interface Recyclable
recycle
in class AbstractReader
protected boolean _isImage()
true
if file is a imageprotected RichText _getMeta(CompositeMetadata meta, String metadataName)
meta
- The composite metametadataName
- The metadata name (with /)