Class DocbookEnhancementSource
- java.lang.Object
-
- org.ametys.cms.transformation.docbook.DocbookEnhancementSource
-
- All Implemented Interfaces:
Source
public class DocbookEnhancementSource extends Object implements Source
Source based upon a string.
-
-
Constructor Summary
Constructors Constructor Description DocbookEnhancementSource(String location, String content, long timestamp)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
-
DocbookEnhancementSource
public DocbookEnhancementSource(String location, String content, long timestamp)
Build a source- Parameters:
location- The source locationcontent- The source contenttimestamp- the application startup time.
-
-
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
-
-