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 boolean
exists()
long
getContentLength()
InputStream
getInputStream()
long
getLastModified()
String
getMimeType()
String
getScheme()
String
getURI()
SourceValidity
getValidity()
void
refresh()
-
-
-
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:
getContentLength
in interfaceSource
-
getInputStream
public InputStream getInputStream() throws IOException, SourceNotFoundException
- Specified by:
getInputStream
in interfaceSource
- Throws:
IOException
SourceNotFoundException
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfaceSource
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceSource
-
getValidity
public SourceValidity getValidity()
- Specified by:
getValidity
in interfaceSource
-
-