Package org.uberfire.java.nio.file
Interface Path
-
- All Superinterfaces:
Comparable<Path>,Iterable<Path>,Watchable
- All Known Subinterfaces:
FSPath
- All Known Implementing Classes:
AbstractPath,GeneralPathImpl
public interface Path extends Comparable<Path>, Iterable<Path>, Watchable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanendsWith(String other)booleanendsWith(Path other)PathgetFileName()FileSystemgetFileSystem()PathgetName(int index)intgetNameCount()PathgetParent()PathgetRoot()booleanisAbsolute()Pathnormalize()Pathrelativize(Path other)Pathresolve(String other)Pathresolve(Path other)PathresolveSibling(String other)PathresolveSibling(Path other)booleanstartsWith(String other)booleanstartsWith(Path other)Pathsubpath(int beginIndex, int endIndex)PathtoAbsolutePath()FiletoFile()PathtoRealPath(LinkOption... options)URItoUri()-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getFileSystem
FileSystem getFileSystem()
-
isAbsolute
boolean isAbsolute()
-
getRoot
Path getRoot()
-
getFileName
Path getFileName()
-
getParent
Path getParent()
-
getNameCount
int getNameCount()
-
getName
Path getName(int index) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
subpath
Path subpath(int beginIndex, int endIndex) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
startsWith
boolean startsWith(Path other)
-
startsWith
boolean startsWith(String other) throws InvalidPathException
- Throws:
InvalidPathException
-
endsWith
boolean endsWith(Path other)
-
endsWith
boolean endsWith(String other) throws InvalidPathException
- Throws:
InvalidPathException
-
normalize
Path normalize()
-
resolve
Path resolve(String other) throws InvalidPathException
- Throws:
InvalidPathException
-
resolveSibling
Path resolveSibling(String other) throws InvalidPathException
- Throws:
InvalidPathException
-
relativize
Path relativize(Path other) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
toUri
URI toUri() throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
toAbsolutePath
Path toAbsolutePath() throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
toRealPath
Path toRealPath(LinkOption... options) throws IOException, SecurityException
- Throws:
IOExceptionSecurityException
-
toFile
File toFile() throws UnsupportedOperationException
- Throws:
UnsupportedOperationException
-
-