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 TypeMethodDescriptionbooleanexists()Check if theunderlying contentis 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, setMimetypeMethods 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:ContentReaderCheck if theunderlying contentis present.- Specified by:
existsin interfaceContentReader- Returns:
- Whether the file exists or not
-