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. 
- 
- 
Field Summary
Fields Modifier and Type Field Description private String_contentprivate String_locationprivate long_timestamp 
- 
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() 
 - 
 
- 
- 
Field Detail
- 
_timestamp
private long _timestamp
 
 - 
 
- 
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
 
 - 
 
 -