Package net.bytebuddy.utility
Interface FileSystem.ForNio2CapableVm.Files
-
- Enclosing class:
- FileSystem.ForNio2CapableVm
@Proxied("java.nio.file.Files") protected static interface FileSystem.ForNio2CapableVm.Files
A dispatcher to access thejava.nio.file.FilesAPI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectcopy(java.lang.Object source, java.lang.Object target, java.lang.Object[] option)Copies a file.java.lang.Objectmove(java.lang.Object source, java.lang.Object target, java.lang.Object[] option)Moves a file.
-
-
-
Method Detail
-
copy
@IsStatic java.lang.Object copy(@Proxied("java.nio.file.Path") java.lang.Object source, @Proxied("java.nio.file.Path") java.lang.Object target, @Proxied("java.nio.file.CopyOption") java.lang.Object[] option) throws java.io.IOException
Copies a file.- Parameters:
source- The sourcejava.nio.file.Path.target- The targetjava.nio.file.Path.option- An array of copy options.- Returns:
- The copied file.
- Throws:
java.io.IOException- If an I/O exception occurs.
-
move
@IsStatic java.lang.Object move(@Proxied("java.nio.file.Path") java.lang.Object source, @Proxied("java.nio.file.Path") java.lang.Object target, @Proxied("java.nio.file.CopyOption") java.lang.Object[] option) throws java.io.IOException
Moves a file.- Parameters:
source- The sourcejava.nio.file.Path.target- The targetjava.nio.file.Path.option- An array of copy options.- Returns:
- The moved file.
- Throws:
java.io.IOException- If an I/O exception occurs.
-
-