public final class PathUtil extends Object
| 构造器和说明 |
|---|
PathUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
checkPath(String key)
Ignore invalid char and // /./ /../.
|
static List<String> |
getPathOrderNodes(String root,
String path)
Get path nodes.
|
static Stack<String> |
getPathReverseNodes(String root,
String path)
Get path nodes, child to root.
|
static String |
getRealPath(String root,
String path)
Get real path.
|
static List<String> |
getShortPathNodes(String path)
Get path nodes.
|
public static String getRealPath(String root, String path)
root - rootpath - pathpublic static Stack<String> getPathReverseNodes(String root, String path)
root - rootpath - pathpublic static List<String> getPathOrderNodes(String root, String path)
root - rootpath - pathpublic static List<String> getShortPathNodes(String path)
path - pathpublic static String checkPath(String key)
key - keyIllegalArgumentException - IllegalArgumentExceptionCopyright © 2018. All rights reserved.