Interface FileContentReader
-
- All Superinterfaces:
ContentAccessor,ContentReader
public interface FileContentReader extends ContentReader
Extension toContentReaderfor Readers which are able to make the backing file available to you.- Author:
- Derek Hulley
- See Also:
ContentReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()Check if theunderlying contentis present.FilegetFile()Provides access to the underlying File that this Reader accesses.-
Methods inherited from interface org.alfresco.service.cmr.repository.ContentAccessor
addListener, getContentData, getContentUrl, getEncoding, getLocale, getMimetype, getSize, isChannelOpen, setEncoding, setLocale, setMimetype
-
Methods inherited from interface org.alfresco.service.cmr.repository.ContentReader
getContent, getContent, getContentInputStream, getContentString, getContentString, getFileChannel, getLastModified, getReadableChannel, getReader, isClosed
-
-
-
-
Method Detail
-
getFile
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:ContentReaderCheck if theunderlying contentis present.- Specified by:
existsin interfaceContentReader- Returns:
- Whether the file exists or not
-
-