Class FileSystem.ForNio2CapableVm

java.lang.Object
net.bytebuddy.utility.FileSystem
net.bytebuddy.utility.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 Details

  • Constructor Details

    • ForNio2CapableVm

      protected ForNio2CapableVm()
  • Method Details

    • copy

      public void copy(File source, File target) throws 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:
      IOException - If an I/O exception occurs.
    • link

      public void link(File source, File target) throws IOException
      Description copied from class: FileSystem
      Links a file as a hard-link. If linking is not supported, a copy is made.
      Overrides:
      link in class FileSystem
      Parameters:
      source - The source file.
      target - The target file.
      Throws:
      IOException - If an I/O exception occurs.
    • move

      public void move(File source, File target) throws 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:
      IOException - If an I/O exception occurs.