public interface Path extends Comparable<Path>, Iterable<Path>, Watchable
| Modifier and Type | Method and Description |
|---|---|
boolean |
endsWith(Path other) |
boolean |
endsWith(String other) |
Path |
getFileName() |
FileSystem |
getFileSystem() |
Path |
getName(int index) |
int |
getNameCount() |
Path |
getParent() |
Path |
getRoot() |
boolean |
isAbsolute() |
Path |
normalize() |
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) |
URI |
toUri() |
compareToforEach, iterator, spliteratorFileSystem getFileSystem()
boolean isAbsolute()
Path getRoot()
Path getFileName()
Path getParent()
int getNameCount()
Path getName(int index) throws IllegalArgumentException
IllegalArgumentExceptionPath subpath(int beginIndex, int endIndex) throws IllegalArgumentException
IllegalArgumentExceptionboolean startsWith(Path other)
boolean startsWith(String other) throws InvalidPathException
InvalidPathExceptionboolean endsWith(Path other)
boolean endsWith(String other) throws InvalidPathException
InvalidPathExceptionPath normalize()
Path resolve(String other) throws InvalidPathException
InvalidPathExceptionPath resolveSibling(String other) throws InvalidPathException
InvalidPathExceptionPath relativize(Path other) throws IllegalArgumentException
IllegalArgumentExceptionURI toUri() throws IOException, SecurityException
IOExceptionSecurityExceptionPath toAbsolutePath() throws IOException, SecurityException
IOExceptionSecurityExceptionPath toRealPath(LinkOption... options) throws IOException, SecurityException
IOExceptionSecurityExceptionFile toFile() throws UnsupportedOperationException
UnsupportedOperationExceptionCopyright © 2012–2018 JBoss by Red Hat. All rights reserved.