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

All Implemented Interfaces:
    Source

Direct Known Subclasses:
    XMLDBSource

Deprecated! Use - the new Avalon Excalibur Source Resolving

This abstract class provides convenience methods to implement a SAX based Source. Implement toSAX() and getSystemId() and optionally override getLastModified() and getContentLength() to obtain a valid Source implementation.
Field Summary
protected  Logger log    The Logger instance 
protected  ComponentManager manager    The ComponentManager instance 
Constructor:
 public AbstractSAXSource(Environment environment,
    ComponentManager manager,
    Logger logger) 
    The constructor.
    Parameters:
    environment - the Cocoon Environment.
    manager - an Avalon Component Manager
    logger - A LogKit logger
Method from org.apache.cocoon.components.source.AbstractSAXSource Summary:
getContentLength,   getInputSource,   getInputStream,   getLastModified,   getSystemId,   toSAX
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.components.source.AbstractSAXSource Detail:
 public long getContentLength() 
      Deprecated!
    Override this method to set the Content Length
 public InputSource getInputSource() throws IOException, ProcessingException 
      Deprecated!
    Get an InputSource for the given URL.
 public InputStream getInputStream() throws IOException, ProcessingException 
      Deprecated!
    Get an InputSource for the given URL. Shamelessly stolen from SitemapSource.
 public long getLastModified() 
      Deprecated!
    Override this method to set the Last Modification date
 abstract public String getSystemId()       Deprecated!
    Implement this method to set the unique identifier.
 abstract public  void toSAX(ContentHandler handler) throws SAXException       Deprecated!
    Implement this method to obtain SAX events.