Interface FileContentReader
- All Superinterfaces:
ContentAccessor
,ContentReader
Extension to
ContentReader
for Readers which are able to
make the backing file available to you.- Author:
- Derek Hulley
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
Check if theunderlying content
is present.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 Details
-
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
-