|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.excalibur.source.impl.AbstractSource | +--org.apache.excalibur.source.impl.ResourceSource
Description of a source which is described by the resource protocol which gets a resource from the classloader.
Constructor Summary | |
ResourceSource(String systemId)
|
Method Summary | |
protected void |
checkInfos()
|
boolean |
exists()
Does this source exist ? |
protected ClassLoader |
getClassLoader()
|
InputStream |
getInputStream()
Return an InputStream object to read from the source. |
String |
getMimeType()
Get the mime-type of the content described by this object. |
SourceValidity |
getValidity()
Returns NOPValidity.SHARED_INSTANCE since a resource doesn't change. |
Methods inherited from class org.apache.excalibur.source.impl.AbstractSource |
getContentLength, getInfos, getLastModified, getScheme, getURI, refresh, setContentLength, setLastModified, setScheme, setSystemId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.excalibur.source.Source |
getContentLength, getLastModified, getScheme, getURI, refresh |
Constructor Detail |
public ResourceSource(String systemId) throws MalformedURLException
Method Detail |
public boolean exists()
Source
exists
in interface Source
protected void checkInfos()
checkInfos
in class AbstractSource
public String getMimeType()
Source
null
.
getMimeType
in interface Source
getMimeType
in class AbstractSource
null
.public InputStream getInputStream() throws IOException, SourceException
InputStream
object to read from the source.
getInputStream
in interface Source
getInputStream
in class AbstractSource
InputStream
to read data from (never null
).
IOException
- if some I/O problem occurs.
SourceException
public SourceValidity getValidity()
NOPValidity.SHARED_INSTANCE
since a resource doesn't change.
getValidity
in interface Source
getValidity
in class AbstractSource
null
.protected ClassLoader getClassLoader()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |