org.entityfs.fs.cap.fs
Interface FSCFileResolvable

All Superinterfaces:
FileSystemCapability, FSCUriResolvable

public interface FSCFileResolvable
extends FSCUriResolvable

This capability is supported by file systems with entities that can be resolved to File:s.

See Also:
ECFileResolvable, FCFileBacked, FSCTFileResolvable, FSCFileResolvableUtil

Method Summary
 AbsoluteLocation getEntityLocationForFile(File f)
          Get the absolute location that corresponds to the supplied File object.
 File getFileForFileSystemRoot()
          Return a File object referencing the file system root directory in the backing file system.
 
Methods inherited from interface org.entityfs.fs.cap.fs.FSCUriResolvable
getEntityLocationForUri
 

Method Detail

getEntityLocationForFile

AbsoluteLocation getEntityLocationForFile(File f)
                                          throws EntityNotFoundException
Get the absolute location that corresponds to the supplied File object. The file object must reference a location within the file system.

Parameters:
f - The file object to get the absolute location for.
Returns:
The absolute location corresponding to the given file object.
Throws:
EntityNotFoundException - If the file object does not reference a location in the file system.
Permissions_required:
None

getFileForFileSystemRoot

File getFileForFileSystemRoot()
Return a File object referencing the file system root directory in the backing file system.

Returns:
A File object representing the file system's root directory.
Permissions_required:
None