Class FastPathResolver
- java.lang.Object
-
- io.github.fastclasspathscanner.utils.FastPathResolver
-
public class FastPathResolver extends Object
Resolve relative paths and URLs/URIs against a base path in a way that is faster than Java's URL/URI parser (and much faster than Path), while aiming for cross-platform compatibility, and hopefully in particular being robust to the many forms of Windows path weirdness.
-
-
Constructor Summary
Constructors Constructor Description FastPathResolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
resolve(String pathStr)
Strip away any "jar:" prefix from a filename URI, and convert it to a file path, handling possibly-broken mixes of filesystem and URI conventions.static String
resolve(String resolveBasePath, String relativePathStr)
Strip away any "jar:" prefix from a filename URI, and convert it to a file path, handling possibly-broken mixes of filesystem and URI conventions; resolve relative paths relative to resolveBasePath.
-