public class ZHttpServletFileUtil
extends java.lang.Object
构造器和说明 |
---|
ZHttpServletFileUtil() |
限定符和类型 | 方法和说明 |
---|---|
static void |
inputStreamWirteToResponse(javax.servlet.http.HttpServletResponse response,
java.io.InputStream inputStream) |
static void |
mergeMultiPartFile(java.lang.String uploadFolder,
java.lang.String destPath,
java.lang.String fileName,
java.lang.String guid)
合并分块文件
|
static void |
saveUploadToFile(javax.servlet.http.HttpServletRequest request,
java.lang.String uploadFolder,
java.lang.String guid,
java.lang.Integer chunk,
org.springframework.web.multipart.MultipartFile file)
保存上传文件
|
public static void saveUploadToFile(javax.servlet.http.HttpServletRequest request, java.lang.String uploadFolder, java.lang.String guid, java.lang.Integer chunk, org.springframework.web.multipart.MultipartFile file)
request
- RequestuploadFolder
- 上传文件夹guid
- GUIDchunk
- 分块file
- 文件public static void mergeMultiPartFile(java.lang.String uploadFolder, java.lang.String destPath, java.lang.String fileName, java.lang.String guid) throws java.io.IOException
uploadFolder
- 上传文件夹destPath
- 目标路径fileName
- 文件名guid
- GUIDjava.io.IOException
- IOExceptionpublic static void inputStreamWirteToResponse(javax.servlet.http.HttpServletResponse response, java.io.InputStream inputStream)