Class FilePathNioMapped


  • public class FilePathNioMapped
    extends FilePathWrapper
    This file system stores files on disk and uses java.nio to access the files. This class used memory mapped files.
    • Constructor Detail

      • FilePathNioMapped

        public FilePathNioMapped()
    • Method Detail

      • open

        public java.nio.channels.FileChannel open​(java.lang.String mode)
                                           throws java.io.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:
        java.io.IOException - If an I/O error occurs
      • getScheme

        public java.lang.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