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 boolean
exists()
long
getContentLength()
InputStream
getInputStream()
long
getLastModified()
String
getMimeType()
String
getName()
Returns the name of this source.String
getScheme()
String
getURI()
SourceValidity
getValidity()
void
refresh()
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException, SourceNotFoundException
- Specified by:
getInputStream
in interfaceSource
- Throws:
IOException
SourceNotFoundException
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidity
in interfaceSource
-
getName
public String getName()
Description copied from interface:NamedSource
Returns the name of this source.- Specified by:
getName
in interfaceNamedSource
- Returns:
- the name of this source.
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceSource
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceSource
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfaceSource
-
-