Package hec.map.tms.datasource
Interface FileSystem
- All Known Implementing Classes:
DirectoryFileSystem
,ZipFileFileSystem
public interface FileSystem
-
Method Summary
Modifier and TypeMethodDescriptionboolean
close()
Closes the file systemboolean
Returns true if the file exists and false if it does not.getFileChannel
(String path) Returns a FileChannel for the given path specified.
-
Method Details
-
getFileChannel
Returns a FileChannel for the given path specified. If the path is relative, it will begin from the root of the File System. Null is returned if the file path does not exist.- Parameters:
path
-- Returns:
-
exists
Returns true if the file exists and false if it does not.- Parameters:
path
-- Returns:
-
close
Closes the file system- Returns:
- Throws:
IOException
-