public class FileUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BUFSIZE |
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
existsFile(String filePath) |
static Object |
file2Object(String filePath,
String classPath,
String type) |
static long |
getFileSize(String filePath)
获取文件大小
|
static void |
mergeFiles(String outFile,
List<String> files) |
static <T> void |
object2File(String filePath,
T t,
String type) |
public static final int BUFSIZE
public static boolean existsFile(String filePath)
public static <T> void object2File(String filePath, T t, String type)
filePath
- 存放文件路径t
- 对象type
- 序列化实现方式public static long getFileSize(String filePath)
filePath
- Copyright © 2006–2018 TinyGroup. All rights reserved.