|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.source.impl.AvalonToCocoonSource
public final class AvalonToCocoonSource
This source objects wraps an Avalon Excalibur Source to get
an obsolete Cocoon Source object for the use of the deprecated
SourceResolver.resolve(String)
method.
Field Summary | |
---|---|
protected Environment |
environment
The environment |
protected ComponentManager |
manager
The manager |
protected SourceResolver |
resolver
The source resolver |
protected Source |
source
The real source |
Constructor Summary | |
---|---|
AvalonToCocoonSource(Source source,
SourceResolver resolver,
Environment environment,
ComponentManager manager)
Constructor |
Method Summary | |
---|---|
long |
getContentLength()
Get the content length of the source or -1 if it is not possible to determine the length. |
InputSource |
getInputSource()
Return an InputSource object to read the XML
content. |
InputStream |
getInputStream()
Return an InputStream object to read from the source. |
long |
getLastModified()
Get the last modification date of the source or 0 if it is not possible to determine the date. |
String |
getSystemId()
Return the unique identifer for this source |
void |
recycle()
|
void |
refresh()
Refresh the content of this object after the underlying data content has changed. |
void |
toSAX(ContentHandler handler)
Stream content to a content handler or to an XMLConsumer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Source source
protected SourceResolver resolver
protected Environment environment
protected ComponentManager manager
Constructor Detail |
---|
public AvalonToCocoonSource(Source source, SourceResolver resolver, Environment environment, ComponentManager manager)
Method Detail |
---|
public long getLastModified()
getLastModified
in interface Source
public long getContentLength()
getContentLength
in interface Source
public InputStream getInputStream() throws ProcessingException, IOException
InputStream
object to read from the source.
getInputStream
in interface Source
ProcessingException
IOException
public InputSource getInputSource() throws ProcessingException, IOException
InputSource
object to read the XML
content.
getInputSource
in interface Source
InputSource
value
ProcessingException
- if an error occurs
IOException
- if an error occurspublic String getSystemId()
getSystemId
in interface Source
public void recycle()
recycle
in interface Recyclable
public void refresh()
ModifiableSource
refresh
in interface ModifiableSource
public void toSAX(ContentHandler handler) throws SAXException
toSAX
in interface XMLizable
SAXException
- if failed to parse source document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |