public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(Closeable... closeables) |
static void |
copyFile(String srcFilePath,
String dstFilePath) |
static void |
deleteFile(String filePath) |
static boolean |
fileExists(String filePath) |
static InputStream |
findFile(String name) |
static Date |
getLastWriteTime(Object filename) |
static String |
readAllText(String filename) |
public static InputStream findFile(String name)
public static void copyFile(String srcFilePath, String dstFilePath) throws IOException
IOExceptionpublic static boolean fileExists(String filePath)
public static void deleteFile(String filePath)
public static void closeQuietly(Closeable... closeables)
Copyright © 2012. All Rights Reserved.