Package org.ametys.cms.content
Class RichTextFileSource
- java.lang.Object
-
- org.ametys.cms.content.RichTextFileSource
-
- All Implemented Interfaces:
NamedSource,Source
public class RichTextFileSource extends Object implements NamedSource
-
-
Constructor Summary
Constructors Constructor Description RichTextFileSource(Content content, RichText richText, String filename, String uri)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Resource_getResource()booleanexists()longgetContentLength()InputStreamgetInputStream()longgetLastModified()StringgetMimeType()StringgetName()Returns the name of this source.StringgetScheme()StringgetURI()SourceValiditygetValidity()voidrefresh()
-
-
-
Method Detail
-
_getResource
private Resource _getResource() throws SourceNotFoundException
- Throws:
SourceNotFoundException
-
getInputStream
public InputStream getInputStream() throws IOException, SourceNotFoundException
- Specified by:
getInputStreamin interfaceSource- Throws:
IOExceptionSourceNotFoundException
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidityin interfaceSource
-
getName
public String getName()
Description copied from interface:NamedSourceReturns the name of this source.- Specified by:
getNamein interfaceNamedSource- Returns:
- the name of this source.
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein interfaceSource
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceSource
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceSource
-
-