Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » components » source » impl » [javadoc | source]
org.apache.cocoon.components.source.impl
public final class: AvalonToCocoonSource [javadoc | source]
java.lang.Object
   org.apache.cocoon.components.source.impl.AvalonToCocoonSource

All Implemented Interfaces:
    ModifiableSource

This source objects wraps an Avalon Excalibur Source to get an obsolete Cocoon Source object for the use of the deprecated org.apache.cocoon.environment.SourceResolver#resolve(String) method.
Field Summary
protected  Source source    The real source 
protected  SourceResolver resolver    The source resolver 
protected  Environment environment    The environment 
protected  ComponentManager manager    The manager 
Constructor:
 public AvalonToCocoonSource(Source source,
    SourceResolver resolver,
    Environment environment,
    ComponentManager manager) 
    Constructor
Method from org.apache.cocoon.components.source.impl.AvalonToCocoonSource Summary:
getContentLength,   getInputSource,   getInputStream,   getLastModified,   getSystemId,   recycle,   refresh,   toSAX
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.source.impl.AvalonToCocoonSource Detail:
 public long getContentLength() 
    Get the content length of the source or -1 if it is not possible to determine the length.
 public InputSource getInputSource() throws IOException, ProcessingException 
    Return an InputSource object to read the XML content.
 public InputStream getInputStream() throws IOException, ProcessingException 
    Return an InputStream object to read from the source.
 public long getLastModified() 
    Get the last modification date of the source or 0 if it is not possible to determine the date.
 public String getSystemId() 
    Return the unique identifer for this source
 public  void recycle() 
 public  void refresh() 
 public  void toSAX(ContentHandler handler) throws SAXException 
    Stream content to a content handler or to an XMLConsumer.