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
_content
private String
_location
private 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 boolean
exists()
long
getContentLength()
InputStream
getInputStream()
long
getLastModified()
String
getMimeType()
String
getScheme()
String
getURI()
SourceValidity
getValidity()
void
refresh()
-
-
-
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:
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
-
-