Interface FileContentReader
-
- All Superinterfaces:
ContentAccessor
,ContentReader
public interface FileContentReader extends ContentReader
Extension toContentReader
for 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 boolean
exists()
Check if theunderlying content
is present.File
getFile()
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:ContentReader
Check if theunderlying content
is present.- Specified by:
exists
in interfaceContentReader
- Returns:
- Whether the file exists or not
-
-