Interface FileSystem.ForNio2CapableVm.Files

Enclosing class:
FileSystem.ForNio2CapableVm

@Proxied("java.nio.file.Files") protected static interface FileSystem.ForNio2CapableVm.Files
A dispatcher to access the java.nio.file.Files API.
  • Method Details

    • copy

      @IsStatic Object copy(@Proxied("java.nio.file.Path") Object source, @Proxied("java.nio.file.Path") Object target, @Proxied("java.nio.file.CopyOption") Object[] option) throws IOException
      Copies a file.
      Parameters:
      source - The source java.nio.file.Path.
      target - The target java.nio.file.Path.
      option - An array of copy options.
      Returns:
      The copied file.
      Throws:
      IOException - If an I/O exception occurs.
    • move

      @IsStatic Object move(@Proxied("java.nio.file.Path") Object source, @Proxied("java.nio.file.Path") Object target, @Proxied("java.nio.file.CopyOption") Object[] option) throws IOException
      Moves a file.
      Parameters:
      source - The source java.nio.file.Path.
      target - The target java.nio.file.Path.
      option - An array of copy options.
      Returns:
      The moved file.
      Throws:
      IOException - If an I/O exception occurs.