Class PathWrapper<P extends Path, FS extends FileSystemWrapperBase>
java.lang.Object
org.aksw.commons.path.nio.PathWrapper<P,FS>
public class PathWrapper<P extends Path, FS extends FileSystemWrapperBase>
extends Object
implements Path
Wrapper for paths where the filesystem is a wrapper.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetName(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) toUri()protected Pathprotected PMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Path
endsWith, equals, hashCode, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile, toString
-
Field Details
-
delegate
-
fileSystem
-
-
Constructor Details
-
PathWrapper
-
-
Method Details
-
getDelegate
-
wrap
-
unwrap
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
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
-