Class FileSystem.ForNio2CapableVm

  • Enclosing class:
    FileSystem

    @Enhance
    protected static class FileSystem.ForNio2CapableVm
    extends FileSystem
    A file system representation for a VM that does support NIO2.
    • Field Detail

      • STATIC_MEMBER

        private static final java.lang.Object STATIC_MEMBER
        Indicates a static method invocation.
      • copy

        private final java.lang.reflect.Method copy
        The java.nio.file.Files#copy method.
      • move

        private final java.lang.reflect.Method move
        The java.nio.file.Files#move method.
    • Constructor Detail

      • ForNio2CapableVm

        protected ForNio2CapableVm​(java.lang.reflect.Method copy,
                                   java.lang.reflect.Method move)
        Creates a new NIO2-capable file system dispatcher.
        Parameters:
        copy - The java.nio.file.Files#copy method.
        move - The java.nio.file.Files#move method.
    • Method Detail

      • copy

        public void copy​(java.io.File source,
                         java.io.File target)
                  throws java.io.IOException
        Description copied from class: FileSystem
        Copies a file.
        Specified by:
        copy in class FileSystem
        Parameters:
        source - The source file.
        target - The target file.
        Throws:
        java.io.IOException - If an I/O exception occurs.
      • move

        public void move​(java.io.File source,
                         java.io.File target)
                  throws java.io.IOException
        Description copied from class: FileSystem
        Moves a file.
        Specified by:
        move in class FileSystem
        Parameters:
        source - The source file.
        target - The target file.
        Throws:
        java.io.IOException - If an I/O exception occurs.