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() |
compareTo
forEach, iterator, spliterator
FileSystem getFileSystem()
boolean isAbsolute()
Path getRoot()
Path getFileName()
Path getParent()
int getNameCount()
Path getName(int index) throws IllegalArgumentException
IllegalArgumentException
Path subpath(int beginIndex, int endIndex) throws IllegalArgumentException
IllegalArgumentException
boolean startsWith(Path other)
boolean startsWith(String other) throws InvalidPathException
InvalidPathException
boolean endsWith(Path other)
boolean endsWith(String other) throws InvalidPathException
InvalidPathException
Path normalize()
Path resolve(String other) throws InvalidPathException
InvalidPathException
Path resolveSibling(String other) throws InvalidPathException
InvalidPathException
Path relativize(Path other) throws IllegalArgumentException
IllegalArgumentException
URI toUri() throws IOException, SecurityException
IOException
SecurityException
Path toAbsolutePath() throws IOException, SecurityException
IOException
SecurityException
Path toRealPath(LinkOption... options) throws IOException, SecurityException
IOException
SecurityException
File toFile() throws UnsupportedOperationException
UnsupportedOperationException
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.