public class HTMLEnhancementSource extends Object implements Source
Modifier and Type | Field and Description |
---|---|
private String |
_content |
private String |
_location |
Constructor and Description |
---|
HTMLEnhancementSource(String location,
String content)
Build a source
|
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
long |
getContentLength() |
InputStream |
getInputStream() |
long |
getLastModified() |
String |
getMimeType() |
String |
getScheme() |
String |
getURI() |
SourceValidity |
getValidity() |
void |
refresh() |
public HTMLEnhancementSource(String location, String content)
location
- The source locationcontent
- The source contentpublic long getContentLength()
getContentLength
in interface Source
public InputStream getInputStream() throws IOException, SourceNotFoundException
getInputStream
in interface Source
IOException
SourceNotFoundException
public long getLastModified()
getLastModified
in interface Source
public String getMimeType()
getMimeType
in interface Source
public SourceValidity getValidity()
getValidity
in interface Source