Package org.aksw.commons.path.core
Class PathStr
- All Implemented Interfaces:
Serializable,Comparable<Path<String>>,Iterable<Path<String>>,Path<String>
A path implementations for strings. Mimics Unix paths.
Escaping:
String is split on '/'
Backspace '\' escapes '/' i.e. \/ -> /
Example:
PathOpsStr.create("/hell\//o/world").getSegments() yields [hell/, o, world].
- Author:
- raven
- See Also:
-
Field Summary
Fields inherited from class org.aksw.commons.path.core.PathBase
isAbsolute, pathOps, segments, segmentsView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathStrnewAbsolutePath(String segment) static PathStrnewAbsolutePath(String... segments) static PathStrnewAbsolutePath(List<String> segments) static PathStrnewRelativePath(String segment) static PathStrnewRelativePath(String... segments) static PathStrnewRelativePath(List<String> segments) static PathStrMethods inherited from class org.aksw.commons.path.core.PathBase
compareLists, compareTo, endsWith, equals, getFileName, getName, getNameCount, getParent, getPathOps, getRoot, getSegments, getSystem, hashCode, isAbsolute, isParentToken, iterator, newPath, normalize, relativize, relativize, resolve, resolve, resolveSibling, resolveSibling, resolveSiblingStr, resolveStr, startsWith, subpath, subpath, toAbsolutePath, toList, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PathStr
-
-
Method Details
-
parse
-
newAbsolutePath
-
newAbsolutePath
-
newAbsolutePath
-
newRelativePath
-
newRelativePath
-
newRelativePath
-