Lines Matching defs:src

99             // prepare a src
100 Path src = getTempPath();
101 String tmpName = src.toString();
102 OutputStream os = Files.newOutputStream(src);
109 provider.newFileSystem(new File(System.getProperty("test.src", ".")).toPath(),
115 provider.newFileSystem(src, new HashMap<String, Object>());
122 Files.copy(src, dst);
123 checkEqual(src, dst);
130 checkEqual(src, dst2);
140 checkEqual(src, dst3);
148 checkEqual(src, dst4);
183 fchCopy(src, dst); // in
184 checkEqual(src, dst);
187 checkEqual(src, tmp);
193 Files.delete(src);
214 System.out.println("copy src: fs -> fs0...");
368 private static void z2zcopy(FileSystem src, FileSystem dst, String path,
372 Path srcPath = src.getPath(path);
383 z2zcopy(src, dst,
408 private static void z2zmove(FileSystem src, FileSystem dst, String path)
411 Path srcPath = src.getPath(path);
419 z2zmove(src, dst,
494 private static void checkEqual(Path src, Path dst) throws IOException
497 // src.toString(), dst.toString());
502 try (InputStream isSrc = Files.newInputStream(src);
512 src.toString(), dst.toString());
520 src.toString(), dst.toString());
529 try (SeekableByteChannel chSrc = Files.newByteChannel(src);
533 System.out.printf("src[%s].size=%d, dst[%s].size=%d%n",
546 src.toString(), dst.toString());
552 src.toString(), dst.toString());
563 System.out.printf("src[%s]: size=%d, position=%d%n",
579 private static void fchCopy(Path src, Path dst) throws IOException
587 try (FileChannel srcFc = src.getFileSystem()
589 .newFileChannel(src, read);
603 private static void chCopy(Path src, Path dst) throws IOException
611 try (SeekableByteChannel srcCh = Files.newByteChannel(src, read);
624 System.out.printf("src[%s]: size=%d, position=%d%n",
638 private static void streamCopy(Path src, Path dst) throws IOException
641 try (InputStream isSrc = Files.newInputStream(src);