Lines Matching refs:source

1127      * except if the source and target are the {@link #isSameFile same} file, in
1154 * copied to the target file if supported by both the source and target
1173 * its file attributes have not been copied from the source file. When the
1181 * name as the source file:
1183 * Path source = ...
1185 * Files.copy(source, newdir.resolve(source.getFileName());
1188 * @param source
1192 * provider to the source path)
1213 * method is invoked to check read access to the source file, the
1219 public static Path copy(Path source, Path target, CopyOption... options)
1222 FileSystemProvider provider = provider(source);
1225 provider.copy(source, target, options);
1228 CopyMoveHelper.copyToForeignTarget(source, target, options);
1237 * file, failing if the target file exists except if the source and
1296 * Path source = ...
1297 * Files.move(source, source.resolveSibling("newname"));
1303 * Path source = ...
1305 * Files.move(source, newdir.resolve(source.getFileName()), REPLACE_EXISTING);
1308 * @param source
1312 * provider to the source path)
1336 * method is invoked to check write access to both the source and
1339 public static Path move(Path source, Path target, CopyOption... options)
1342 FileSystemProvider provider = provider(source);
1345 provider.move(source, target, options);
1348 CopyMoveHelper.moveToForeignTarget(source, target, options);
2727 private static long copy(InputStream source, OutputStream sink)
2733 while ((n = source.read(buf)) > 0) {
2875 * @param source
2889 public static long copy(Path source, OutputStream out) throws IOException {
2893 try (InputStream in = newInputStream(source)) {
2902 private static byte[] read(InputStream source, int initialSize)
2912 while ((n = source.read(buf, nread, rem)) > 0) {