Lines Matching refs:path

139  * Path} that uses the abstract path represented by a {@code File} object to
165 private String path;
168 * Enum type that indicates the status of a file path.
173 * The flag indicating whether the file path is invalid.
178 * Check if the file has an invalid path. Currently, the inspection of
179 * a file path is very limited, and it only covers Nul character check.
180 * Returning true means the path is definitely invalid/garbage. But
181 * returning false does not guarantee that the path is valid.
183 * @return true if the file path is invalid.
187 status = (this.path.indexOf('\u0000') < 0) ? PathStatus.CHECKED
225 * The system-dependent path-separator character. This field is
227 * property <code>path.separator</code>. This character is used to
228 * separate filenames in a sequence of files given as a <em>path list</em>.
237 * The system-dependent path-separator character, represented as a string
250 this.path = pathname;
260 assert parent.path != null;
261 assert (!parent.path.equals(""));
262 this.path = fs.resolve(parent.path, child);
279 this.path = fs.normalize(pathname);
280 this.prefixLength = fs.prefixLength(this.path);
321 this.path = fs.resolve(fs.getDefaultParent(),
324 this.path = fs.resolve(fs.normalize(parent),
328 this.path = fs.normalize(child);
330 this.prefixLength = fs.prefixLength(this.path);
363 if (parent.path.equals("")) {
364 this.path = fs.resolve(fs.getDefaultParent(),
367 this.path = fs.resolve(parent.path,
371 this.path = fs.normalize(child);
373 this.prefixLength = fs.prefixLength(this.path);
399 * <tt>"file"</tt>, a non-empty path component, and undefined
430 throw new IllegalArgumentException("URI path component is empty");
436 this.path = fs.normalize(p);
437 this.prefixLength = fs.prefixLength(this.path);
454 int index = path.lastIndexOf(separatorChar);
455 if (index < prefixLength) return path.substring(prefixLength);
456 return path.substring(index + 1);
473 int index = path.lastIndexOf(separatorChar);
475 if ((prefixLength > 0) && (path.length() > prefixLength))
476 return path.substring(0, prefixLength);
479 return path.substring(0, index);
512 return path;
616 throw new IOException("Invalid file path");
647 private static String slashify(String path, boolean isDirectory) {
648 String p = path;
667 * If the path cannot be parsed as a URL
684 throw new MalformedURLException("Invalid file path");
712 * in the {@code URI} path. The authority component is undefined, meaning
719 * <tt>"file"</tt>, a path representing this abstract pathname,
760 security.checkRead(path);
785 security.checkWrite(path);
808 security.checkRead(path);
838 security.checkRead(path);
871 security.checkRead(path);
900 security.checkRead(path);
932 security.checkRead(path);
963 security.checkRead(path);
1002 if (security != null) security.checkWrite(path);
1004 throw new IOException("Invalid file path");
1006 return fs.createFileExclusively(path);
1030 security.checkDelete(path);
1068 security.checkDelete(path);
1073 DeleteOnExitHook.add(path);
1085 * complete path.
1111 security.checkRead(path);
1305 security.checkWrite(path);
1382 security.checkWrite(path);
1383 security.checkWrite(dest.path);
1424 security.checkWrite(path);
1452 security.checkWrite(path);
1493 security.checkWrite(path);
1566 security.checkWrite(path);
1642 security.checkWrite(path);
1699 security.checkExec(path);
1778 sm.checkRead(path);
1788 * href="#partName">named</a> by this abstract path name.
1816 sm.checkRead(path);
1857 sm.checkRead(path);
2110 * in case the path is reconstituted on a different host type.
2131 String pathField = (String)fields.get("path", null);
2135 this.path = fs.normalize(pathField);
2136 this.prefixLength = fs.prefixLength(this.path);
2148 * this abstract path. The resulting {@code Path} is associated with the
2163 * @return a {@code Path} constructed from this abstract path
2167 * path (see {@link java.nio.file.FileSystem#getPath FileSystem.getPath})
2178 result = FileSystems.getDefault().getPath(path);