public class FileHelper extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getBase64Str(String path) |
static byte[] |
getBytes(String filePath) |
static String |
getContentMD5(String filePath) |
static String |
getFileName(String path) |
static void |
main(String[] args) |
public static byte[] getBytes(String filePath) throws DefineException
filePath - String 文件地址DefineExceptionpublic static String getContentMD5(String filePath) throws DefineException
filePath - String 文件路径DefineExceptionpublic static String getBase64Str(String path) throws DefineException
path - DefineExceptionpublic static void main(String[] args)
Copyright © 2021. All rights reserved.