org.mycore.datamodel.ifs
Interface MCRFileReader

All Known Implementing Classes:
MCRFile, MCROldFile

public interface MCRFileReader

Represents a read-only view of MCRFile metadata. This interface was introduced as a mechanism to be able to use the same code with MyCoRe Sample that uses the new class MCRFile and current MILESS code that still uses the class MCROldFile. The interface will be obsolete in the future.

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Frank Lützenkirchen

Method Summary
 MCRFileContentType getContentType()
          Returns the content type of this file
 String getContentTypeID()
          Returns the content type of the content of this file
 String getExtension()
          Returns the file extension of this file, or an empty string if the file has no extension
 String getID()
          Returns the ID of this file
 String getPath()
          Returns the relative path of this file
 long getSize()
          Returns the file size as number of bytes
 String getStorageID()
          Returns the storage ID that identifies the place where the MCRContentStore has stored the content of this file
 String getStoreID()
          Returns the ID of the MCRContentStore implementation that holds the content of this file
 

Method Detail

getID

String getID()
Returns the ID of this file

Returns:
the ID of this file

getPath

String getPath()
Returns the relative path of this file


getExtension

String getExtension()
Returns the file extension of this file, or an empty string if the file has no extension


getSize

long getSize()
Returns the file size as number of bytes


getStoreID

String getStoreID()
Returns the ID of the MCRContentStore implementation that holds the content of this file


getStorageID

String getStorageID()
Returns the storage ID that identifies the place where the MCRContentStore has stored the content of this file


getContentTypeID

String getContentTypeID()
Returns the content type of the content of this file


getContentType

MCRFileContentType getContentType()
Returns the content type of this file