public class StringUtils
extends java.lang.Object
构造器和说明 |
---|
StringUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
extractFileName(java.lang.String absolutePath)
提取一个完整路径的文件名,比如:
resource/image/logo.png -> logo.png
resource/image/ -> image/
resource/image -> image
image/ -> image/
image -> image
|
static java.lang.String |
extractNameNoSuffix(java.lang.String absolutePath)
提取一个路径或者文件名中的名称(不含后缀),比如:
resource/image/logo.png -> logo
logo.png -> logo
logo -> logo
|
static java.lang.String |
extractSuffix(java.lang.String absolutePath)
提取一个路径或者文件名中的后缀,比如:
resource/image/logo.png -> .png
logo.png -> .png
logo ->
|
static java.lang.String |
flat(java.util.Map<java.lang.String,java.lang.String> paras) |
static boolean |
isEmpty(java.lang.String str) |
static java.lang.String |
toHexString(byte[] data) |
public static java.lang.String toHexString(byte[] data)
public static boolean isEmpty(java.lang.String str)
public static java.lang.String flat(java.util.Map<java.lang.String,java.lang.String> paras)
public static java.lang.String extractFileName(java.lang.String absolutePath)
resource/image/logo.png -> logo.png
resource/image/ -> image/
resource/image -> image
image/ -> image/
image -> image
public static java.lang.String extractNameNoSuffix(java.lang.String absolutePath)
resource/image/logo.png -> logo
logo.png -> logo
logo -> logo
public static java.lang.String extractSuffix(java.lang.String absolutePath)
resource/image/logo.png -> .png
logo.png -> .png
logo ->