|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 SourcegetInputStream in class AbstractSourceIOException - if I/O error occured.
SourceExceptionpublic boolean exists()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||