org.apache.cocoon.components.source
Class SitemapSource

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLConsumer
          extended by org.apache.cocoon.components.source.SitemapSource
All Implemented Interfaces:
Poolable, Recyclable, LogEnabled, ModifiableSource, Source, XMLConsumer, XMLizable, ContentHandler, LexicalHandler

Deprecated. by the Avalon Excalibur Source Resolving

public final class SitemapSource
extends AbstractXMLConsumer
implements ModifiableSource

Description of a source which is defined by a pipeline.

Version:
CVS $Id: SitemapSource.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Constructor Summary
SitemapSource(ComponentManager manager, String uri, Logger logger)
          Deprecated. Construct a new object
 
Method Summary
 long getContentLength()
          Deprecated. Get the content length of the source or -1 if it is not possible to determine the length.
 InputSource getInputSource()
          Deprecated. Return a new InputSource object
 InputStream getInputStream()
          Deprecated. Return an InputStream object to read from the source.
 long getLastModified()
          Deprecated. Get the last modification date of the source or 0 if it is not possible to determine the date.
 String getSystemId()
          Deprecated. Return the unique identifer for this source
 void recycle()
          Deprecated.  
 void refresh()
          Deprecated. Refresh this object and update the last modified date and content length.
 void toSAX(ContentHandler contentHandler)
          Deprecated. Stream content to the content handler
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLConsumer
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitemapSource

public SitemapSource(ComponentManager manager,
                     String uri,
                     Logger logger)
              throws IOException,
                     ProcessingException
Deprecated. 
Construct a new object

Throws:
IOException
ProcessingException
Method Detail

getLastModified

public long getLastModified()
Deprecated. 
Get the last modification date of the source or 0 if it is not possible to determine the date.

Specified by:
getLastModified in interface Source

getContentLength

public long getContentLength()
Deprecated. 
Get the content length of the source or -1 if it is not possible to determine the length.

Specified by:
getContentLength in interface Source

getInputStream

public InputStream getInputStream()
                           throws ProcessingException,
                                  IOException
Deprecated. 
Return an InputStream object to read from the source.

Specified by:
getInputStream in interface Source
Throws:
ProcessingException
IOException

getSystemId

public String getSystemId()
Deprecated. 
Return the unique identifer for this source

Specified by:
getSystemId in interface Source

refresh

public void refresh()
Deprecated. 
Refresh this object and update the last modified date and content length.

Specified by:
refresh in interface ModifiableSource

getInputSource

public InputSource getInputSource()
                           throws ProcessingException,
                                  IOException
Deprecated. 
Return a new InputSource object

Specified by:
getInputSource in interface Source
Returns:
an InputSource value
Throws:
ProcessingException - if an error occurs
IOException - if an error occurs

toSAX

public void toSAX(ContentHandler contentHandler)
           throws SAXException
Deprecated. 
Stream content to the content handler

Specified by:
toSAX in interface XMLizable
Throws:
SAXException

recycle

public void recycle()
Deprecated. 
Specified by:
recycle in interface Recyclable


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.