public abstract void copy (Path source, Path target, CopyOption… options) throws IOException

Copy a file to a target file. This method works in exactly the manner specified by the Files.copy(Path,Path,CopyOption[]) method except that both the source and target paths must be associated with this provider.

Parameters:
source     the path to the file to copy
target     the path to the target file
options     options specifying how the copy should be done

Exceptions:
UnsupportedOperationException     if the array contains a copy option that is not supported
FileAlreadyExistsException     if the target file exists but cannot be replaced because the REPLACE_EXISTING option is not specified (optional specific exception)
DirectoryNotEmptyException     the REPLACE_EXISTING option is specified but the file cannot be replaced because it is a non-empty directory (optional specific exception)
IOException     if an I/O error occurs
SecurityException     In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to the source file, the checkWrite is invoked to check write access to the target file. If a symbolic link is copied the security manager is invoked to check LinkPermission ("symbolic").