Class FilePathCache


public class FilePathCache extends FilePathWrapper
A file with a read cache.
  • Field Details

    • INSTANCE

      public static final FilePathCache INSTANCE
      The instance.
  • Constructor Details

    • FilePathCache

      public FilePathCache()
  • Method Details

    • wrap

      public static FileChannel wrap(FileChannel f)
    • open

      public FileChannel open(String mode) throws IOException
      Description copied from class: FilePath
      Open a random access file object.
      Overrides:
      open in class FilePathWrapper
      Parameters:
      mode - the access mode. Supported are r, rw, rws, rwd
      Returns:
      the file object
      Throws:
      IOException - If an I/O error occurs
    • getScheme

      public String getScheme()
      Description copied from class: FilePath
      Get the scheme (prefix) for this file provider. This is similar to java.nio.file.spi.FileSystemProvider.getScheme.
      Specified by:
      getScheme in class FilePath
      Returns:
      the scheme