Interface FileSystem

All Known Implementing Classes:
DirectoryFileSystem, ZipFileFileSystem

public interface FileSystem
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Closes the file system
    boolean
    exists(String path)
    Returns true if the file exists and false if it does not.
    Returns a FileChannel for the given path specified.
  • Method Details

    • getFileChannel

      FileChannel getFileChannel(String path)
      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

      boolean exists(String path)
      Returns true if the file exists and false if it does not.
      Parameters:
      path -
      Returns:
    • close

      boolean close() throws IOException
      Closes the file system
      Returns:
      Throws:
      IOException