Class HTMLEnhancementSource
- java.lang.Object
-
- org.ametys.cms.transformation.html.HTMLEnhancementSource
-
- All Implemented Interfaces:
Source
public class HTMLEnhancementSource extends Object implements Source
Source based upon a string
-
-
Constructor Summary
Constructors Constructor Description HTMLEnhancementSource(String location, String content)Build a source
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()longgetContentLength()InputStreamgetInputStream()longgetLastModified()StringgetMimeType()StringgetScheme()StringgetURI()SourceValiditygetValidity()voidrefresh()
-
-
-
Constructor Detail
-
HTMLEnhancementSource
public HTMLEnhancementSource(String location, String content)
Build a source- Parameters:
location- The source locationcontent- The source content
-
-
Method Detail
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceSource
-
getInputStream
public InputStream getInputStream() throws IOException, SourceNotFoundException
- Specified by:
getInputStreamin interfaceSource- Throws:
IOExceptionSourceNotFoundException
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceSource
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein interfaceSource
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidityin interfaceSource
-
-