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.
shared formal Boolean absolute
Determine if this is an absolute path.
shared 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.
shared formal Path elementPaths
The path elements of this path, as paths consisting of a single path element.
shared formal String elements
The path elements of this path, as strings.
shared formal Path normalizedPath
This path, simplified to a canonical form.
shared formal Path parent
This path, after removing the last path element.
shared formal Resource resource
shared formal String separator
The separator character used by this path.
shared formal String string
This path, expressed as a string.
Refined declaration: string
shared formal System system
shared formal String uriString
This path, represented as a URI string.
|Attributes inherited from: Object|
shared formal Boolean childOf(Path path)
Determine if this path is a child of the given path.
This path, after appending the given path element.
shared formal Boolean parentOf(Path path)
Determine if this path is a parent of the given path.
This path, converted into a path relative to the given path.
This path, after removing the last path element, and then appending the given path element.
shared formal void visit(Visitor visitor)
Walk the tree of directories rooted at this path and visit files contained in this directory tree.
|Methods inherited from: Object|
|Methods inherited from: Comparable<Other>|