public static final class SourceMapCache.SourceMapSource extends Object implements Source
Modifier and Type | Field and Description |
---|---|
private String |
_content |
private Long |
_lastModified |
private String |
_location |
private TimeStampValidity |
_timeStampValidity |
Constructor and Description |
---|
SourceMapSource(String location,
String content,
Long lastModified)
Default constructor for a memory 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() |
private Long _lastModified
private TimeStampValidity _timeStampValidity
public SourceMapSource(String location, String content, Long lastModified)
location
- The location of the sourcecontent
- The content of the sourcelastModified
- The last modified datepublic InputStream getInputStream() throws IOException, SourceNotFoundException
getInputStream
in interface Source
IOException
SourceNotFoundException
public SourceValidity getValidity()
getValidity
in interface Source
public String getMimeType()
getMimeType
in interface Source
public long getContentLength()
getContentLength
in interface Source
public long getLastModified()
getLastModified
in interface Source