Searched refs:path (Results 51 - 75 of 981) sorted by relevance

1234567891011>>

/openjdk9/jdk/test/java/io/File/
H A DIsAbsolute.java34 private static void ck(String path, boolean ans) throws Exception { argument
35 File f = new File(path);
38 throw new Exception(path + ": expected " + ans + ", got " + x);
39 System.err.println(path + " ==> " + x);
/openjdk9/jdk/test/javax/swing/JFileChooser/6698013/
H A Dbug6698013.java118 * A Virtual File. Contains a path and a directory flag that
126 private String path; field in class:VirtualFile
130 public VirtualFile(String path, boolean directory) { argument
131 super(path);
132 this.path = path;
137 int index = path.lastIndexOf('/');
143 return new VirtualFile(path.substring(0, index), true);
157 int index = path.lastIndexOf('/');
159 return index == -1 ? path
[all...]
/openjdk9/jdk/src/java.base/unix/native/libjava/
H A Dcanonicalize_md.c121 /* Collapse "." and ".." names in the given path wherever possible.
128 collapse(char *path) argument
130 char *names = (path[0] == '/') ? path + 1 : path; /* Preserve first '/' */
184 /* Convert a pathname to canonical form. The input path is assumed to contain
202 /* First try realpath() on the entire path */
209 /* Something's bogus in the original path, so remove names from the end
212 char path[PATH_MAX + 1]; local
214 strncpy(path, origina
[all...]
/openjdk9/jdk/test/java/nio/file/Path/
H A DUriImportExport.java43 Path path = Paths.get(s);
44 log.println(path);
45 URI uri = path.toUri();
49 if (!result.equals(path.toAbsolutePath())) {
50 log.println("FAIL: Expected " + path + ", got " + result);
60 Path path = Paths.get(s);
61 log.println(path);
62 URI uri = path.toUri();
71 if (!result.equals(path.toAbsolutePath())) {
72 log.println("FAIL: Expected " + path
[all...]
/openjdk9/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/plugin/
H A DResourcePoolEntry.java39 * A ResourcePoolEntry is identified by a path of the form:
82 * The path of this ResourcePoolEntry.
84 * @return The module path.
86 public String path(); method in interface:ResourcePoolEntry
171 * @param path The resource path.
176 public static ResourcePoolEntry create(String path, argument
178 return ResourcePoolEntryFactory.create(path, type, content);
184 * @param path The resource path
188 create(String path, byte[] content) argument
200 create(String path, ResourcePoolEntry.Type type, Path file) argument
212 create(String path, Path file) argument
227 createSymLink(String path, ResourcePoolEntry.Type type, ResourcePoolEntry target) argument
[all...]
/openjdk9/hotspot/test/testlibrary/ctw/src/sun/hotspot/tools/ctw/
H A DPathHandler.java38 * Abstract handler for path.
52 * @param root root path to process
66 * Factory method. Construct concrete handler in depends from {@code path}.
68 * @param path the path to process
70 * @throws NullPointerException if {@code path} or {@code executor} is
73 public static PathHandler create(String path, Executor executor) { argument
74 Objects.requireNonNull(path);
76 Matcher matcher = JAR_IN_DIR_PATTERN.matcher(path);
78 path
96 isJarFile(Path path) argument
105 isJimageFile(Path path) argument
112 isListFile(Path path) argument
[all...]
/openjdk9/jdk/src/java.base/windows/classes/sun/nio/fs/
H A DWindowsPathParser.java31 * A parser of Windows path strings
43 private final String path; field in class:WindowsPathParser.Result
45 Result(WindowsPathType type, String root, String path) { argument
48 this.path = path;
52 * The path type
66 * The normalized path (includes root)
68 String path() { method in class:WindowsPathParser.Result
69 return path;
74 * Parses the given input as a Windows path
163 normalize(StringBuilder sb, String path, int off) argument
203 nextNonSlash(String path, int off, int end) argument
208 nextSlash(String path, int off, int end) argument
[all...]
H A DWindowsPath.java44 // The maximum path that does not require long path prefix. On Windows
45 // the maximum path is 260 minus 1 (NUL) but for directories it is 260
50 // Maximum extended-length path
56 // path type
60 // normalized path
61 private final String path; field in class:WindowsPath
63 // the path to use in Win32 calls. This differs from path for relative
64 // paths and has a long path prefi
77 WindowsPath(WindowsFileSystem fs, WindowsPathType type, String root, String path) argument
91 parse(WindowsFileSystem fs, String path) argument
99 createFromNormalizedPath(WindowsFileSystem fs, String path, BasicFileAttributes attrs) argument
126 createFromNormalizedPath(WindowsFileSystem fs, String path) argument
141 WindowsPathWithAttributes(WindowsFileSystem fs, WindowsPathType type, String root, String path, BasicFileAttributes attrs) argument
283 addPrefixIfNeeded(String path) argument
369 toWindowsPath(Path path) argument
[all...]
/openjdk9/jdk/src/jdk.zipfs/share/classes/jdk/nio/zipfs/
H A DZipPath.java47 private final byte[] path; field in class:ZipPath
51 ZipPath(ZipFileSystem zfs, byte[] path) { argument
52 this(zfs, path, false);
55 ZipPath(ZipFileSystem zfs, byte[] path, boolean normalized) { argument
58 this.path = path;
61 this.path = normalize(path);
63 this.path = normalize(zfs.getString(path));
68 ZipPath(ZipFileSystem zfs, String path) argument
383 checkPath(Path path) argument
448 normalize(byte[] path) argument
467 normalize(byte[] path, int off) argument
496 normalize(String path) argument
516 normalize(String path, int off, int len) argument
[all...]
/openjdk9/jdk/src/java.base/aix/classes/sun/nio/fs/
H A DAixFileSystemProvider.java49 AixFileStore getFileStore(UnixPath path) throws IOException { argument
50 return new AixFileStore(path);
/openjdk9/jdk/src/java.base/macosx/classes/sun/nio/fs/
H A DBsdFileSystemProvider.java45 BsdFileStore getFileStore(UnixPath path) throws IOException { argument
46 return new BsdFileStore(path);
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/transport/http/
H A DResourceLoader.java44 * Returns the actual location of the resource from the 'path'
47 * @param path
48 * Desiganates an absolute path within an web application, such as:
54 URL getResource(String path) throws MalformedURLException; argument
66 * null if the path is invalid. empty if the path didn't contain
71 Set<String> getResourcePaths(String path); argument
/openjdk9/jdk/src/java.base/unix/classes/sun/nio/fs/
H A DUnixFileStoreAttributes.java37 static UnixFileStoreAttributes get(UnixPath path) throws UnixException { argument
39 UnixNativeDispatcher.statvfs(path, attrs);
/openjdk9/jdk/src/java.desktop/share/classes/javax/swing/
H A DMenuElement.java43 * source being the receiving element's component. {@code path} is the
44 * path of the receiving element in the menu hierarchy including the
53 * @param path the path of the receiving element in the menu hierarchy
56 public void processMouseEvent(MouseEvent event, MenuElement path[], MenuSelectionManager manager); argument
63 * @param path the path of the receiving element in the menu hierarchy
66 public void processKeyEvent(KeyEvent event, MenuElement path[], MenuSelectionManager manager); argument
73 * active (if it is a menu) or is on the part of the menu path that
/openjdk9/jdk/test/java/nio/file/Files/walkFileTree/
H A DSkipSubtree.java44 // check if this path should have been skipped
45 static void check(Path path) { argument
47 if (skipped.contains(path))
48 throw new RuntimeException(path + " should not have been visited");
49 path = path.getParent();
50 } while (path != null);
54 static boolean skip(Path path) { argument
56 skipped.add(path);
/openjdk9/nashorn/test/script/basic/
H A DJDK-8007990.js33 var path = p.toPath(); variable
34 var basicView = Packages.java.nio.file.Files.getFileAttributeView(path, Packages.java.nio.file.attribute.BasicFileAttributeView.class);
/openjdk9/jdk/src/java.base/share/classes/java/nio/file/
H A DSecureDirectoryStream.java39 * interface specify a relative path. All access to the file is relative
52 * performed using the path obtained by resolving the given relative path
53 * against the <i>original path</i> of the directory (irrespective of if the
63 * Opens the directory identified by the given path, returning a {@code
68 * the {@code path} parameter is an {@link Path#isAbsolute absolute} path.
69 * When the parameter is a relative path then the directory to open is
78 * @param path
79 * the path t
97 newDirectoryStream(T path, LinkOption... options) argument
148 newByteChannel(T path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
178 deleteFile(T path) argument
206 deleteDirectory(T path) argument
309 getFileAttributeView(T path, Class<V> type, LinkOption... options) argument
[all...]
H A DFiles.java98 private static FileSystemProvider provider(Path path) { argument
99 return path.getFileSystem().provider();
133 * @param path
134 * the path to the file to open
151 public static InputStream newInputStream(Path path, OpenOption... options) argument
154 return provider(path).newInputStream(path, options);
178 * Path path = ...
182 * OutputStream out = Files.newOutputStream(path);
185 * out = Files.newOutputStream(path, APPEN
215 newOutputStream(Path path, OpenOption... options) argument
364 newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
410 newByteChannel(Path path, OpenOption... options) argument
635 createFile(Path path, FileAttribute<?>... attrs) argument
1133 delete(Path path) argument
1172 deleteIfExists(Path path) argument
1478 getFileStore(Path path) argument
1521 isSameFile(Path path, Path path2) argument
1548 isHidden(Path path) argument
1630 probeContentType(Path path) argument
1688 getFileAttributeView(Path path, Class<V> type, LinkOption... options) argument
1750 readAttributes(Path path, Class<A> type, LinkOption... options) argument
1819 setAttribute(Path path, String attribute, Object value, LinkOption... options) argument
1880 getAttribute(Path path, String attribute, LinkOption... options) argument
1981 readAttributes(Path path, String attributes, LinkOption... options) argument
2022 getPosixFilePermissions(Path path, LinkOption... options) argument
2060 setPosixFilePermissions(Path path, Set<PosixFilePermission> perms) argument
2098 getOwner(Path path, LinkOption... options) argument
2145 setOwner(Path path, UserPrincipal owner) argument
2176 isSymbolicLink(Path path) argument
2215 isDirectory(Path path, LinkOption... options) argument
2258 isRegularFile(Path path, LinkOption... options) argument
2300 getLastModifiedTime(Path path, LinkOption... options) argument
2339 setLastModifiedTime(Path path, FileTime time) argument
2368 size(Path path) argument
2419 exists(Path path, LinkOption... options) argument
2474 notExists(Path path, LinkOption... options) argument
2496 isAccessible(Path path, AccessMode... modes) argument
2532 isReadable(Path path) argument
2563 isWritable(Path path) argument
2598 isExecutable(Path path) argument
2823 newBufferedReader(Path path, Charset cs) argument
2858 newBufferedReader(Path path) argument
2903 newBufferedWriter(Path path, Charset cs, OpenOption... options) argument
2948 newBufferedWriter(Path path, OpenOption... options) argument
3206 readAllBytes(Path path) argument
3256 readAllLines(Path path, Charset cs) argument
3296 readAllLines(Path path) argument
3346 write(Path path, byte[] bytes, OpenOption... options) argument
3410 write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options) argument
3463 write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options) argument
3855 lines(Path path, Charset cs) argument
3954 lines(Path path) argument
[all...]
/openjdk9/langtools/test/tools/javac/processing/
H A DTestMultipleErrors.java26 TreePath path = trees.getPath(root);
28 trees.printMessage(Kind.ERROR, "error3", path.getLeaf(), path.getCompilationUnit());
29 trees.printMessage(Kind.ERROR, "error4", path.getLeaf(), path.getCompilationUnit());
/openjdk9/hotspot/test/compiler/aot/jdk.tools.jaotc.test/src/jdk/tools/jaotc/test/collect/
H A DFakeFileSupport.java56 public void setJarFileSystemRoot(Path path) { argument
57 jarFileSystemRoot = path;
61 public boolean exists(Path path) { argument
62 checkedExists.add(path.toString());
63 return exists.contains(path.toString());
67 public boolean isDirectory(Path path) { argument
68 checkedDirectory.add(path.toString());
69 return directories.contains(path.toString());
73 public ClassLoader createClassLoader(Path path) throws MalformedURLException { argument
74 classloaderPaths.add(path
[all...]
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/
H A DPathFileObject.java83 protected final Path path; field in class:PathFileObject
95 * @param path the absolute path referred to by this file object
96 * @param userPackageRootDir the path of the directory containing the
98 * @param relativePath the path of this file relative to {@code userPackageRootDir}
100 static PathFileObject forDirectoryPath(BaseFileManager fileManager, Path path, argument
102 return new DirectoryFileObject(fileManager, path, userPackageRootDir, relativePath);
109 private DirectoryFileObject(BaseFileManager fileManager, Path path, argument
111 super(fileManager, path);
128 return "DirectoryFileObject[" + userPackageRootDir + ":" + relativePath.path
155 forJarPath(BaseFileManager fileManager, Path path, Path userJarPath) argument
163 JarFileObject(BaseFileManager fileManager, Path path, Path userJarPath) argument
226 forJRTPath(BaseFileManager fileManager, final Path path) argument
233 JRTFileObject(BaseFileManager fileManager, Path path) argument
274 forSimplePath(BaseFileManager fileManager, Path path, Path userPath) argument
281 SimpleFileObject(BaseFileManager fileManager, Path path, Path userPath) argument
345 PathFileObject(BaseFileManager fileManager, Path path) argument
[all...]
/openjdk9/jdk/src/java.base/share/classes/jdk/internal/jrtfs/
H A DJrtFileSystemProvider.java192 String path = uri.getPath();
193 if (path == null || path.charAt(0) != '/') {
194 throw new IllegalArgumentException("Invalid path component");
196 return getTheFileSystem().getPath(path);
225 static final JrtPath toJrtPath(Path path) { argument
226 Objects.requireNonNull(path, "path");
227 if (!(path instanceof JrtPath)) {
230 return (JrtPath) path;
234 checkAccess(Path path, AccessMode... modes) argument
250 createDirectory(Path path, FileAttribute<?>... attrs) argument
256 delete(Path path) argument
263 getFileAttributeView(Path path, Class<V> type, LinkOption... options) argument
268 getFileStore(Path path) argument
273 isHidden(Path path) argument
278 isSameFile(Path path, Path other) argument
289 newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService exec, FileAttribute<?>... attrs) argument
298 newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
306 newDirectoryStream( Path path, Filter<? super Path> filter) argument
312 newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) argument
320 newInputStream(Path path, OpenOption... options) argument
326 newOutputStream(Path path, OpenOption... options) argument
334 readAttributes(Path path, Class<A> type, LinkOption... options) argument
344 readAttributes(Path path, String attribute, LinkOption... options) argument
350 setAttribute(Path path, String attribute, Object value, LinkOption... options) argument
[all...]
H A DJrtFileAttributeView.java59 private final JrtPath path; field in class:JrtFileAttributeView
63 private JrtFileAttributeView(JrtPath path, boolean isJrtView, LinkOption... options) { argument
64 this.path = path;
70 static <V extends FileAttributeView> V get(JrtPath path, Class<V> type, LinkOption... options) { argument
73 return (V) new JrtFileAttributeView(path, false, options);
76 return (V) new JrtFileAttributeView(path, true, options);
81 static JrtFileAttributeView get(JrtPath path, String type, LinkOption... options) { argument
84 return new JrtFileAttributeView(path, false, options);
87 return new JrtFileAttributeView(path, tru
109 setAttribute(JrtPath path, String attribute, Object value) argument
135 readAttributes(JrtPath path, String attributes, LinkOption... options) argument
[all...]
/openjdk9/jdk/src/java.base/windows/classes/java/io/
H A DWinNTFileSystem.java49 semicolon = props.getProperty("path.separator").charAt(0);
82 public String normalize(String path) { argument
83 int n = path.length();
88 char c = path.charAt(i);
90 return normalize(path, n, (prev == slash) ? i - 1 : i);
92 return normalize(path, n, i - 1);
94 return normalize(path, n, 0);
97 if (prev == slash) return normalize(path, n, n - 1);
98 return path;
103 private String normalize(String path, in argument
175 normalizePrefix(String path, int len, StringBuilder sb) argument
207 prefixLength(String path) argument
279 fromURIPath(String path) argument
352 getDrive(String path) argument
387 canonicalize(String path) argument
448 canonicalize0(String path) argument
472 parentOrNull(String path) argument
542 createFileExclusively(String path) argument
611 access(String path) argument
637 getNameMax0(String path) argument
639 getNameMax(String path) argument
[all...]
/openjdk9/jdk/src/java.prefs/macosx/classes/java/util/prefs/
H A DMacOSXPreferences.java44 private final String path; field in class:MacOSXPreferences
110 path = isRoot ? absolutePath() : absolutePath() + "/";
115 newNode = file.addNode(path);
122 String name = path;
152 file.addKeyToNode(path, key, value);
159 return file.getKeyFromNode(path, key);
167 file.removeKeyFromNode(path, key);
180 file.removeNode(path);
187 file.removeChildFromNode(path, child);
196 String[] result = file.getChildrenForNode(path);
[all...]

Completed in 298 milliseconds

1234567891011>>