public interface FSCapabilityReadType
The interface exposed by filesystem implementations that have the capability to read from mounted archives.
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(PathVirtual path) |
long |
getFileSize(PathVirtual path) |
Calendar |
getModificationTime(PathVirtual path) |
boolean |
isDirectory(PathVirtual path) |
boolean |
isFile(PathVirtual path) |
SortedSet<String> |
listDirectory(PathVirtual path) |
InputStream |
openFile(PathVirtual path)
Open the file at
path. |
boolean exists(PathVirtual path) throws FilesystemError
path - The path.true iff path exists.FilesystemError - If a filesystem error occurs.long getFileSize(PathVirtual path) throws FilesystemError
path - The path.path.FilesystemError - If:
path.path is not a fileCalendar getModificationTime(PathVirtual path) throws FilesystemError
path - The path.path.FilesystemError - If:
r.boolean isDirectory(PathVirtual path) throws FilesystemError
path - The path.true iff path exists and is a
directory.FilesystemError - If a filesystem error occurs.boolean isFile(PathVirtual path) throws FilesystemError
path - The path.true iff path exists and is a file.FilesystemError - If a filesystem error occurs.SortedSet<String> listDirectory(PathVirtual path) throws FilesystemError
path - The path.path.FilesystemError - If:
path.path is not a directoryInputStream openFile(PathVirtual path) throws FilesystemError
Open the file at path.
path - The path.FilesystemError - If:
path.path is not a fileCopyright © 2015 <code@io7m.com> http://io7m.com