Package com.foxinmy.weixin4j.util
Class FileUtil
- java.lang.Object
-
- com.foxinmy.weixin4j.util.FileUtil
-
public class FileUtil extends Object
文件工具类- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
deleteFile(String filePath)
删除文件static String
getFileExtension(String fileName)
获取文件后缀static String
getFileType(InputStream is)
获取文件类型static void
main(String[] args)
-
-
-
Method Detail
-
getFileType
public static String getFileType(InputStream is)
获取文件类型
-
deleteFile
public static boolean deleteFile(String filePath)
删除文件- Parameters:
filePath
-- Returns:
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-