Lines Matching defs:src

65         rename,          // <java Demo rename zipfile src dst>
66 // rename entry src to dst inside zipfile
68 movein, // <java Demo movein zipfile src dst>
69 // move an external src file into zipfile
72 moveout, // <java Demo moveout zipfile src dst>
73 // move a zipfile entry src out to dst
75 copy, // <java Demo copy zipfile src dst>
76 // copy entry src to dst inside zipfile
78 copyin, // <java Demo copyin zipfile src dst>
79 // copy an external src file into zipfile
82 copyin_attrs, // <java Demo copyin_attrs zipfile src dst>
83 // copy an external src file into zipfile
86 copyout, // <java Demo copyout zipfile src dst>
87 // copy zipfile entry src" out to file dst
89 copyout_attrs, // <java Demo copyout_attrs zipfile src dst>
167 Path path, src, dst;
170 src = fs.getPath(args[2]);
172 Files.move(src, dst);
175 src = fs.getPath(args[2]);
177 Files.move(src, dst);
180 src = Paths.get(args[2]);
182 Files.move(src, dst);
185 src = fs.getPath(args[2]);
187 Files.copy(src, dst);
190 src = fs.getPath(args[2]);
192 Files.copy(src, dst);
195 src = Paths.get(args[2]);
197 Files.copy(src, dst);
200 src = Paths.get(args[2]);
202 Files.copy(src, dst, COPY_ATTRIBUTES);
205 src = fs.getPath(args[2]);
207 Files.copy(src, dst, COPY_ATTRIBUTES);
427 Path src = FileSystems.getDefault().getPath(path);
428 if (Files.isDirectory(src)) {
429 try (DirectoryStream<Path> ds = Files.newDirectoryStream(src)) {
438 Files.copy(src, dst, REPLACE_EXISTING);
443 Path src = fs.getPath(path);
444 if (Files.isDirectory(src)) {
445 try (DirectoryStream<Path> ds = Files.newDirectoryStream(src)) {
456 Files.copy(src, dst, REPLACE_EXISTING);
461 private static void z2zcopy(FileSystem src, FileSystem dst, String path)
464 Path srcPath = src.getPath(path);
475 z2zcopy(src, dst,
486 private static void z2zmove(FileSystem src, FileSystem dst, String path)
489 final Path srcPath = src.getPath(path).toAbsolutePath();
585 private static void checkEqual(Path src, Path dst) throws IOException
588 // src.toString(), dst.toString());
593 try (InputStream isSrc = Files.newInputStream(src);
603 src.toString(), dst.toString());
611 src.toString(), dst.toString());
621 try (SeekableByteChannel chSrc = Files.newByteChannel(src);
625 System.out.printf("src[%s].size=%d, dst[%s].size=%d%n",
638 src.toString(), dst.toString());
644 src.toString(), dst.toString());
657 private static void fchCopy(Path src, Path dst) throws IOException
665 try (FileChannel srcFc = src.getFileSystem().provider().newFileChannel(src, read);
677 private static void chCopy(Path src, Path dst) throws IOException
685 try (SeekableByteChannel srcCh = Files.newByteChannel(src, read);
697 private static void streamCopy(Path src, Path dst) throws IOException
700 try (InputStream isSrc = Files.newInputStream(src);