public class OperationFileUtil extends Object
http://www.360doc.com/content/15/0507/16/9148133_468770042.shtml
| 构造器和说明 |
|---|
OperationFileUtil(BaseUploadService config) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteFile(com.alibaba.fastjson.JSONObject pathObj)
文件删除
|
com.alibaba.fastjson.JSONObject |
getFile(String separateUuid,
String uuid,
String fileExt,
String zoom)
获取文件
|
void |
renderFile(javax.servlet.http.HttpServletResponse response,
String separateUuid,
String uuid,
String fileExt,
String zoom) |
void |
upload(File file) |
void |
upload(org.springframework.web.multipart.MultipartFile file)
文件上传
|
public OperationFileUtil(BaseUploadService config)
public void upload(org.springframework.web.multipart.MultipartFile file)
throws IOException
file - IOExceptionpublic void upload(File file) throws IOException
IOExceptionpublic void deleteFile(com.alibaba.fastjson.JSONObject pathObj)
throws Exception
pathObj - Exceptionpublic com.alibaba.fastjson.JSONObject getFile(String separateUuid, String uuid, String fileExt, String zoom)
separateUuid - uuid - fileExt - zoom - Copyright © 2021. All rights reserved.