| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Path other) |
boolean |
endsWith(Path other) |
boolean |
endsWith(String other) |
Path |
getFileName() |
FileSystem |
getFileSystem() |
Path |
getName(int index) |
int |
getNameCount() |
Path |
getParent() |
String |
getPathString()
Deprecated.
will be removed in future releases
|
Path |
getRoot() |
boolean |
isAbsolute() |
Iterator<Path> |
iterator() |
Path |
normalize() |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>... events) |
WatchKey |
register(WatchService watcher,
WatchEvent.Kind<?>[] events,
WatchEvent.Modifier... arg2) |
Path |
relativize(Path other) |
Path |
resolve(Path other) |
Path |
resolve(String other) |
Path |
resolveSibling(Path other) |
Path |
resolveSibling(String other) |
boolean |
startsWith(Path other) |
boolean |
startsWith(String other) |
Path |
subpath(int beginIndex,
int endindex) |
Path |
toAbsolutePath() |
File |
toFile() |
Path |
toRealPath(LinkOption... options) |
String |
toString() |
URI |
toUri() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic FileSystem getFileSystem()
getFileSystem in interface Pathpublic boolean isAbsolute()
isAbsolute in interface Path@Deprecated public String getPathString()
public int compareTo(Path other)
compareTo in interface Comparable<Path>compareTo in interface Pathpublic Path getFileName()
getFileName in interface Pathpublic int getNameCount()
getNameCount in interface Pathpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... arg2) throws IOException
register in interface Pathregister in interface WatchableIOExceptionpublic Path relativize(Path other)
relativize in interface Pathpublic Path resolveSibling(Path other)
resolveSibling in interface Pathpublic Path resolveSibling(String other)
resolveSibling in interface Pathpublic boolean startsWith(Path other)
startsWith in interface Pathpublic boolean startsWith(String other)
startsWith in interface Pathpublic Path toAbsolutePath()
toAbsolutePath in interface Pathpublic Path toRealPath(LinkOption... options) throws IOException
toRealPath in interface PathIOExceptionCopyright © 2020. All rights reserved.