Represents a path in a hierarchical file system. A path is a sequence of path elements. A path may be an absolute path that begins at the root of the file system, or a relative path.
no type hierarchy
no subtypes hierarchy
Attributes | |
absolute | Source Codeshared formal Boolean absolute Determine if this is an absolute path. |
absolutePath | Source Codeshared formal Path absolutePath This path, converted into an absolute path. If this path is already absolute, return this path. Otherwise, if this path is a relative path, resolve it against the file system's default directory. |
elementPaths | Source Codeshared formal Path[] elementPaths The path elements of this path, as paths consisting of a single path element. |
elements | Source Codeshared formal String[] elements The path elements of this path, as strings. |
link | Source Codeshared formal Link? link Obtain a |
normalizedPath | Source Codeshared formal Path normalizedPath This path, simplified to a canonical form. |
parent | Source Codeshared formal Path parent The parent path of this path, formed by removing the last path element, or, if this path is the root path, and has no path elements, this root path. |
resource | Source Codeshared formal Resource resource Obtain a If a symbolic link exists at this path, and
the symbolic link ultimately points to a file
or directory, a |
root | Source Codeshared formal Boolean root Determine if this is a root path, with no
|
separator | Source Codeshared formal String separator The separator character used by this path. |
string | Source Codeshared formal String string This path, expressed as a string. Refines Object.string |
system | Source Codeshared formal System system The |
uriString | Source Codeshared formal String uriString This path, represented as a URI string. |
Inherited Attributes |
Attributes inherited from: Object |
Methods | |
childOf | Source Codeshared formal Boolean childOf(Path path) Determine if this path is a child of the given path. |
childPath | Source Codeshared formal Path childPath(String|Path subpath) This path, after appending the given path element. |
parentOf | Source Codeshared formal Boolean parentOf(Path path) Determine if this path is a parent of the given path. |
relativePath | Source Codeshared formal Path relativePath(String|Path path) This path, converted into a path relative to the given path. |
siblingPath | Source Codeshared formal Path siblingPath(String|Path subpath) This path, after removing the last path element, and then appending the given path element. |
visit | Source Codeshared formal void visit(Visitor visitor) Walk the tree of directories rooted at this path and visit files contained in this directory tree. |
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Comparable<Other> |