|
||||||||||
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.cocoon.components.source.impl.ModuleSource
public class ModuleSource
A Source
that takes its content from a
module.
The URI syntax is
"module:
Constructor Summary | |
---|---|
ModuleSource(Map objectModel,
String uri,
ServiceManager manager,
Logger logger)
Create a module source from a 'module:' uri and a the object model. |
Method Summary | |
---|---|
boolean |
exists()
Does this source actually exist ? |
InputStream |
getInputStream()
Return an InputStream object to read from the source. |
Methods inherited from class org.apache.excalibur.source.impl.AbstractSource |
---|
checkInfos, getContentLength, getInfos, getLastModified, getMimeType, getScheme, getURI, getValidity, refresh, setContentLength, setLastModified, setScheme, setSystemId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleSource(Map objectModel, String uri, ServiceManager manager, Logger logger) throws MalformedURLException
The uri is of the form "module:attribute-type:attribute-name#xpath
MalformedURLException
Method Detail |
---|
public InputStream getInputStream() throws IOException, SourceException
InputStream
object to read from the source.
getInputStream
in interface Source
getInputStream
in class AbstractSource
IOException
- if I/O error occured.
SourceException
public boolean exists()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |