| Method signature |
Significance |
| int compareTo(Path other) |
Compare two paths sequentially |
| Boolean endsWith(Path other) |
Tests whether a path object ends with the given path |
| Boolean endsWith(String other) |
Tests whether a path object ends with the given string, and the string is converted to the Path object |
| Boolean equals(Object other) |
|
| Path GetFileName() |
|
| FileSystem Getfilesystem() |
Returns the file system object that created the Path object |
| Path getName(int Index) |
Returns a name consisting of a path object in the Paths object |
| int GetNameCount() |
Returns the number of name elements in the Path. |
| Path getParent() |
Returns the parent path, or null If this path does not has a parent. |
| Path getroot() |
Returns The root component of this path as a Path object, or null If this path does not has a root component. |
| Boolean isabsolute() |
Tells whether or not the this path is Absolute. |
| iterator<path> Iterator() |
Returns an iterator over the name elements of this path. |
| Path Normalize() |
Remove such AS. And: the path element such as Redundancy. |
|
Watchkey
Register (watchservice watcher, watchevent.kind<?> ... events) |
Registers the file located by this path with a watch service. |
| Watchkey Register(watchservice watcher, watchevent.kind<?>[] events, watchevent.modifier ... modifiers ) |
Registers the file located by this path with a watch service. |
| Path relativize(path other) |
Returns the relative path to parse with this, relative to Other. |
| Path Resolve(path other) |
If other is an absolute path, the other is returned, otherwise, the path obtained by connecting this and other is Returned. |
| Path Resolve(String other) |
If other is an absolute path, the other is returned, otherwise, the path obtained by connecting this and other is Returned. |
| Path resolvesibling(path other) |
If other is an absolute path, the other is returned, otherwise, the path is obtained by connecting the parent path of this and other. |
| Path resolvesibling(String other) |
If other is an absolute path, the other is returned, otherwise, the path is obtained by connecting the parent path of this and other. |
| Boolean startsWith(Path other) |
Similar EndsWith |
| Boolean startsWith(String other) |
Similar EndsWith |
| Path subpath(int beginindex, int EndIndex) |
Returns a relative That's Path a subsequence of the name elements of this path. |
| Path Toabsolutepath() |
Returns a Path object representing the absolute path of this path. |
| File tofile() |
Returns a File object representing this path. |
| Path torealpath(linkoption ... Options) |
Returns the real path of an existing File. |
| URI Touri() |
Returns a URI to represent this path. |