public class FilePathUtil extends Object
java.nio.file.Path}| Constructor and Description |
|---|
FilePathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
concat(String baseName,
String... appendName)
以拼接路径名
|
static String |
getJarPath(Class<?> clazz)
获得参数clazz所在的Jar文件的绝对路径
|
static String |
getParentPath(String path)
获得上层目录的路径
|
static String |
normalizePath(String path)
在Windows环境里,兼容Windows上的路径分割符,将 '/' 转回 '\'
|
static String |
simplifyPath(String path)
将路径整理,如 "a/../b",整理成 "b"
|
Copyright © 2018. All rights reserved.