Package org.aksw.commons.path.core
Class PathNio
java.lang.Object
org.aksw.commons.path.core.PathNio
Implementation of the
Path interface for Path.
Use wrap(java.nio.file.Path) to create an instance of this class.- Author:
- Claus Stadler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetName(int index) intgetRoot()Returns an object such as the file system underlying this path.booleaniterator()relativize(Path<String> other) resolveSibling(String other) resolveSibling(Path<String> other) resolveSiblingStr(String other) resolveStr(String other) booleanstartsWith(Path<String> other) subpath(int beginIndex) Experimental.subpath(int beginIndex, int endIndex) static PathNioprotected PathNiowrapInternal(Path nioPath) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
delegate
-
-
Constructor Details
-
PathNio
-
-
Method Details
-
getDelegate
-
wrap
-
wrapInternal
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath<String>
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath<String>
-
getSegments
- Specified by:
getSegmentsin interfacePath<String>
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath<String>
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath<String>
-
getName
-
subpath
-
subpath
Description copied from interface:PathExperimental. Not part of nio Path. -
startsWith
- Specified by:
startsWithin interfacePath<String>
-
endsWith
-
normalize
-
resolve
-
resolveStr
- Specified by:
resolveStrin interfacePath<String>
-
resolve
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath<String>
-
resolveSiblingStr
- Specified by:
resolveSiblingStrin interfacePath<String>
-
resolveSibling
- Specified by:
resolveSiblingin interfacePath<String>
-
relativize
- Specified by:
relativizein interfacePath<String>
-
iterator
-
compareTo
- Specified by:
compareToin interfaceComparable<Path<String>>
-
getSystem
Description copied from interface:PathReturns an object such as the file system underlying this path. Returns null if not applicable. Experimental.
-