Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » environment » [javadoc | source]
org.apache.cocoon.environment
public interface: Source [javadoc | source]

All Implemented Interfaces:
    org.apache.excalibur.xml.sax.XMLizable, org.apache.avalon.excalibur.pool.Recyclable

All Known Implementing Classes:
    AbstractStreamWriteableSource, AbstractStreamSource, WriteableSource, SitemapSource, AvalonToCocoonSource, URLSource, XMLDBSource, BlobSource, FileSource, DelayedRefreshSourceWrapper, ModifiableSource, AbstractSAXSource, XMLSource

Deprecated! Use - the org.apache.excalibur.source.Source interface instead

Description of a source. This interface provides a simple interface for accessing a source of data. The source of data is assumed to not change during the lifetime of the Source object. If you have a data source that can change its content and you want it to reflect in Cocoon, use a ModifiableSource object instead.
Method from org.apache.cocoon.environment.Source Summary:
getContentLength,   getInputSource,   getInputStream,   getLastModified,   getSystemId
Method from org.apache.cocoon.environment.Source Detail:
 public long getContentLength()       Deprecated!
    Get the content length of the source or -1 if it is not possible to determine the length.
 public InputSource getInputSource() throws IOException, ProcessingException       Deprecated!
    Return an InputSource object to read the XML content.
 public InputStream getInputStream() throws IOException, ProcessingException       Deprecated!
    Return an InputStream object to read from the source.
 public long getLastModified()       Deprecated!
    Get the last modification date of the source or 0 if it is not possible to determine the date.
 public String getSystemId()       Deprecated!
    Return the unique identifer for this source