org.alfresco.service.cmr.repository
Interface FileContentReader

All Superinterfaces:
ContentAccessor, ContentReader

public interface FileContentReader
extends ContentReader

Extension to ContentReader for Readers which are able to make the backing file available to you.

See Also:
ContentReader

Method Summary
 boolean exists()
          Check if the underlying content is present.
 java.io.File getFile()
          Provides access to the underlying File that this Reader accesses.
 
Methods inherited from interface org.alfresco.service.cmr.repository.ContentReader
getContent, getContent, getContentInputStream, getContentString, getContentString, getFileChannel, getLastModified, getReadableChannel, getReader, isClosed
 
Methods inherited from interface org.alfresco.service.cmr.repository.ContentAccessor
addListener, getContentData, getContentUrl, getEncoding, getLocale, getMimetype, getSize, isChannelOpen, setEncoding, setLocale, setMimetype
 

Method Detail

getFile

java.io.File getFile()
Provides access to the underlying File that this Reader accesses.

Returns:
Returns the file that this reader accesses

exists

boolean exists()
Description copied from interface: ContentReader
Check if the underlying content is present.

Specified by:
exists in interface ContentReader
Returns:
Whether the file exists or not


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.