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 Sourcepublic InputStream getInputStream() throws IOException, SourceNotFoundException
getInputStream in interface SourceIOExceptionSourceNotFoundExceptionpublic long getLastModified()
getLastModified in interface Sourcepublic String getMimeType()
getMimeType in interface Sourcepublic SourceValidity getValidity()
getValidity in interface Source