public final class FastPathResolver
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
normalizePath(java.lang.String path,
boolean isFileOrJarURL)
Parse percent encoding, e.g. "%20" -> " "; convert '/' or '\\' to SEP; remove trailing separator char if
present.
|
static java.lang.String |
resolve(java.lang.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 java.lang.String |
resolve(java.lang.String resolveBasePath,
java.lang.String relativePath)
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.
|
public static java.lang.String normalizePath(java.lang.String path,
boolean isFileOrJarURL)
path - The path to normalize.isFileOrJarURL - True if this is a "file:" or "jar:" URL.public static java.lang.String resolve(java.lang.String resolveBasePath,
java.lang.String relativePath)
resolveBasePath - The base path.relativePath - The path to resolve relative to the base path.public static java.lang.String resolve(java.lang.String pathStr)
pathStr - The path to resolve.