Class DirectoryFileSystem

java.lang.Object
hec.map.tms.datasource.filesystem.directory.DirectoryFileSystem
All Implemented Interfaces:
FileSystem

public class DirectoryFileSystem extends Object implements FileSystem
  • Constructor Details

    • DirectoryFileSystem

      public DirectoryFileSystem(File f)
  • Method Details

    • getFileChannel

      public FileChannel getFileChannel(String path)
      Description copied from interface: FileSystem
      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.
      Specified by:
      getFileChannel in interface FileSystem
      Returns:
    • exists

      public boolean exists(String path)
      Description copied from interface: FileSystem
      Returns true if the file exists and false if it does not.
      Specified by:
      exists in interface FileSystem
      Returns:
    • close

      public boolean close() throws IOException
      Description copied from interface: FileSystem
      Closes the file system
      Specified by:
      close in interface FileSystem
      Returns:
      Throws:
      IOException