类 FileUtil
java.lang.Object
cn.jrack.core.util.common.FileUtil
描述:文 件 工 具 类
Class:FileUtil
Author:ZY
Date: 2021/3/31 4:00 下午
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Booleanstatic voiddownLoad(javax.servlet.http.HttpServletResponse response, FileInputStream fileInputStream, String fileName) static voidstatic Booleanstatic StringgetPrintSize(long size) static boolean
-
构造器详细资料
-
FileUtil
public FileUtil()
-
-
方法详细资料
-
getPrintSize
-
exists
-
delete
-
upload
- 参数:
file- 文件path- 文件存放路径- 返回:
-
downLoad
public static void downLoad(javax.servlet.http.HttpServletResponse response, FileInputStream fileInputStream, String fileName) throws UnsupportedEncodingException -
downLoad
public static void downLoad(javax.servlet.http.HttpServletResponse response, String filePath, String fileName) throws UnsupportedEncodingException
-