Lines Matching defs:copy

14  * version 2 for more details (a copy is included in the LICENSE file that
17 * You should have received a copy of the GNU General Public License version
1125 * options} parameter specifying how the copy is performed. By default, the
1126 * copy fails if the target file already exists or is a symbolic link,
1134 * walkFileTree} method to copy a directory and all entries in the directory,
1150 * <td> Attempts to copy the file attributes associated with this file to
1180 * Suppose we want to copy a file into a directory, giving it the same file
1185 * Files.copy(source, newdir.resolve(source.getFileName());
1189 * the path to the file to copy
1194 * options specifying how the copy should be done
1199 * if the array contains a copy option that is not supported
1219 public static Path copy(Path source, Path target, CopyOption... options)
1225 provider.copy(source, target, options);
1252 * #copy copy} method in conjunction with the {@link
1284 * new file. An implementation may also attempt to copy other file
1319 * if the array contains a copy option that is not supported
2727 private static long copy(InputStream source, OutputStream sink)
2744 * <p> By default, the copy fails if the target file already exists or is a
2762 * <i>asynchronously closed</i> or the thread interrupted during the copy is
2772 * Files.copy(in, path);
2781 * options specifying how the copy should be done
2796 * if {@code options} contains a copy option that is not supported
2805 public static long copy(InputStream in, Path target, CopyOption... options)
2850 // do the copy
2852 return copy(in, out);
2867 * is <i>asynchronously closed</i> or the thread interrupted during the copy
2889 public static long copy(Path source, OutputStream out) throws IOException {
2894 return copy(in, out);