Class PathUtils
java.lang.Object
org.aksw.commons.io.util.PathUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getPathSegments(Path path) static Stringstatic Pathstatic PathresolveFsAndPath(String fsUri, String pathStr) Create a path on a (possibly remote) file system via Java nio.static String[]splitBySlash(String str)
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
resolve
-
resolve
-
getPathSegments
-
splitBySlash
-
join
-
resolveFsAndPath
public static Map.Entry<Path, Closeable> resolveFsAndPath(String fsUri, String pathStr) throws IOException Create a path on a (possibly remote) file system via Java nio.- Parameters:
fsUri- The url to a file system. Null or blank for the local one.pathStr- A path on the file system.- Returns:
- A pair comprising the path and a close action which closes the underlying file system.
- Throws:
IOException
-