Searched refs:toPath (Results 1 - 25 of 45) sorted by relevance

12

/openjdk7/jdk/test/java/io/File/
H A DSymLinks.java83 Files.deleteIfExists(link2file.toPath());
85 Files.deleteIfExists(link2link2file.toPath());
89 Files.deleteIfExists(link2dir.toPath());
91 Files.deleteIfExists(link2link2dir.toPath());
93 Files.deleteIfExists(link2nobody.toPath());
95 Files.deleteIfExists(link2link2nobody.toPath());
102 Files.createSymbolicLink(source.toPath(), target.toPath());
109 return Files.isSymbolicLink(link.toPath());
117 Files.readAttributes(link.toPath(), BasicFileAttribute
[all...]
H A DIsHidden.java46 Files.getFileAttributeView(f.toPath(), DosFileAttributeView.class).setHidden(value);
/openjdk7/jdk/test/sun/misc/IoTrace/
H A DIoTraceFileChannelReadWrite.java40 try (FileChannel fc = FileChannel.open(f.toPath(),
52 try (FileChannel fc = FileChannel.open(f.toPath(),
/openjdk7/jdk/test/java/util/Scanner/
H A DFailingConstructors.java50 Files.write(file.toPath(), FILE_CONTENTS.getBytes());
78 new Scanner(file.toPath(), UNSUPPORTED_CHARSET);
87 new Scanner(file.toPath(), null);
/openjdk7/jdk/test/java/io/FileInputStream/
H A DLargeFileAvailable.java100 Files.delete(file.toPath());
103 FileChannel.open(file.toPath(),
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DAtomicAppend.java50 return FileChannel.open(file.toPath(), APPEND);
59 return Files.newOutputStream(file.toPath(), APPEND);
H A DTruncate.java64 FileChannel.open(blah.toPath(), READ, WRITE))
98 FileChannel.open(blah.toPath(), APPEND))
H A DReleaseOnCloseDeadlock.java44 test(blah.toPath());
H A DLock.java178 try (FileChannel fc = FileChannel.open(blah.toPath(), APPEND)) {
/openjdk7/jdk/test/java/util/zip/ZipFile/
H A DReadZip.java64 newZip.toPath(), StandardCopyOption.REPLACE_EXISTING);
67 try (OutputStream os = Files.newOutputStream(newZip.toPath(),
/openjdk7/jdk/test/tools/launcher/
H A DTest7029048.java203 Files.createDirectories(dstClientDir.toPath());
205 Files.deleteIfExists(dstClientLibjvm.toPath());
209 Files.createDirectories(dstServerDir.toPath());
211 Files.deleteIfExists(dstServerLibjvm.toPath());
216 Files.createDirectories(dstOtherServerDir.toPath());
218 Files.deleteIfExists(dstOtherServerLibjvm.toPath());
H A DTestHelper.java328 Path parent = dst.toPath().getParent();
332 Files.copy(src.toPath(), dst.toPath(), COPY_ATTRIBUTES, REPLACE_EXISTING);
344 Files.write(aFile.getAbsoluteFile().toPath(), contents,
381 Files.write(outFile.getAbsoluteFile().toPath(), content,
389 Files.walkFileTree(target.toPath(), new SimpleFileVisitor<Path>() {
/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DCustomThreadPool.java43 AsynchronousFileChannel.open(blah.toPath(), READ, WRITE);
H A DBasic.java49 .open(blah.toPath(), READ, WRITE);
63 testLocking(blah.toPath());
64 testCustomThreadPool(blah.toPath());
65 testAsynchronousClose(blah.toPath());
66 testCancel(blah.toPath());
67 testTruncate(blah.toPath());
H A DLotsOfWrites.java79 this.channel = AsynchronousFileChannel.open(file.toPath(), WRITE);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/org/jvnet/mimepull/
H A DTempFiles.java62 METHOD_FILE_TO_PATH = safeGetMethod(File.class, "toPath");
101 static Object toPath(File f) throws InvocationTargetException, IllegalAccessException { method in class:TempFiles
119 Object path = toPath(dir);
/openjdk7/jdk/test/sun/reflect/CallerSensitive/
H A DClassFileReader.java50 return new DirectoryReader(path.toPath());
52 return new JarFileReader(path.toPath());
54 return new ClassFileReader(path.toPath());
/openjdk7/jdk/src/macosx/bundle/appbundler/src/com/oracle/appbundler/
H A DAppBundlerTask.java449 Path filePath = file.toPath();
466 Files.copy(in, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
471 Path sourcePath = source.toPath();
472 Path destinationPath = destination.toPath();
/openjdk7/jdk/test/java/util/Formatter/
H A DFailingConstructors.java51 Files.write(file.toPath(), FILE_CONTENTS.getBytes());
/openjdk7/jdk/src/solaris/native/java/io/
H A DUnixFileSystem_md.c371 WITH_FIELD_PLATFORM_STRING(env, to, ids.path, toPath) {
372 if (rename(fromPath, toPath) == 0) {
375 } END_PLATFORM_STRING(env, toPath);
/openjdk7/jdk/src/windows/native/java/io/
H A DWin32FileSystem_md.c408 WITH_NATIVE_PATH(env, to, ids.path, toPath) {
409 if (rename(fromPath, toPath) == 0) {
412 } END_NATIVE_PATH(env, toPath);
/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DFileCacheImageInputStream.java104 this.cacheFile = Files.createTempFile(cacheDir.toPath(), "imageio", ".tmp")
H A DFileCacheImageOutputStream.java90 this.cacheFile = Files.createTempFile(cacheDir.toPath(), "imageio", ".tmp")
/openjdk7/jdk/test/java/nio/file/Path/
H A DMisc.java89 assertTrue(d.toPath().equals(dir));
/openjdk7/jdk/test/java/util/logging/
H A DSimpleFormatterFormat.java44 java.nio.file.Files.deleteIfExists(log.toPath());

Completed in 140 milliseconds

12