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.
    • createLink

      @IsStatic Object createLink(@Proxied("java.nio.file.Path") Object source, @Proxied("java.nio.file.Path") Object target) throws IOException
      Links a file.
      Parameters:
      source - The source java.nio.file.Path.
      target - The target java.nio.file.Path.
      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.
    • deleteIfExists

      @IsStatic Object deleteIfExists(@Proxied("java.nio.file.Path") Object file) throws IOException
      Deletes a file if it exists.
      Parameters:
      file - The java.nio.file.Path to delete if it exists.
      Returns:
      The supplied file.
      Throws:
      IOException - If an I/O exception occurs.