org.apache.lenya.cms.repository
Interface ContentHolder

All Superinterfaces:
MetaDataOwner
All Known Subinterfaces:
Node, Revision

public interface ContentHolder
extends MetaDataOwner

Super interface for nodes and revisions.


Method Summary
 boolean exists()
           
 long getContentLength()
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 java.lang.String getMimeType()
           
 java.lang.String getSourceURI()
          Accessor for the source URI of this node
 
Methods inherited from interface org.apache.lenya.cms.metadata.MetaDataOwner
getMetaData, getMetaDataNamespaceUris
 

Method Detail

getLastModified

long getLastModified()
                     throws RepositoryException
Returns:
The last modification date. The date is measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970), and is 0 if it's unknown.
Throws:
RepositoryException - if the node does not exist.

getContentLength

long getContentLength()
                      throws RepositoryException
Returns:
The content length.
Throws:
RepositoryException - if the node does not exist.

getSourceURI

java.lang.String getSourceURI()
Accessor for the source URI of this node

Returns:
the source URI

exists

boolean exists()
               throws RepositoryException
Returns:
if the item exists.
Throws:
RepositoryException - if an error occurs.

getInputStream

java.io.InputStream getInputStream()
                                   throws RepositoryException
Returns:
The input stream.
Throws:
RepositoryException - if the node does not exist.

getMimeType

java.lang.String getMimeType()
                             throws RepositoryException
Returns:
The MIME type.
Throws:
RepositoryException - if the node does not exist.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.