public class Locations extends Object
| 构造器和说明 |
|---|
Locations() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getRelativePath(Location root,
Location location)
获取 root 下指定的 location 代表的资源的相对路径
|
static boolean |
isClasspathLocation(Location location) |
static boolean |
isFileLocation(Location location) |
static boolean |
isJarEntryLocation(Location location) |
static boolean |
isJarFileLocation(Location location) |
static boolean |
isJarLocation(Location location) |
static boolean |
isUrlLocation(Location location) |
static Location |
newLocation(Location root,
String relativePath) |
static <V extends Resource> |
newResource(String location) |
static Location |
parseLocation(String location) |
public static boolean isJarLocation(Location location)
public static boolean isJarFileLocation(Location location)
public static boolean isJarEntryLocation(Location location)
public static String getRelativePath(Location root, Location location)
location - the full pathroot - the rootCopyright © 2022. All rights reserved.