Class NioPath<FS extends FileSystem>
java.lang.Object
org.aksw.commons.path.nio.NioPath<FS>
- Type Parameters:
FS- TheFileSystemtype.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanextractPath(Path other) getName(int index) intgetRoot()booleanregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(Path other) booleanstartsWith(Path other) subpath(int beginIndex, int endIndex) toRealPath(LinkOption... options) toString()toUri()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Path
endsWith, equals, hashCode, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile
-
Field Details
-
fileSystem
-
path
-
-
Constructor Details
-
NioPath
-
-
Method Details
-
getBackingPath
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
newPath
-
extractPath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getName
-
subpath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
normalize
-
resolve
-
relativize
- Specified by:
relativizein interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath- Throws:
IOException
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<FS extends FileSystem>- Specified by:
compareToin interfacePath
-
toString
-