@Service public class SohelpFileService extends Object
构造器和说明 |
---|
SohelpFileService() |
限定符和类型 | 方法和说明 |
---|---|
void |
delete(String fileName) |
void |
delete(String path,
String fileName)
删除文件
|
void |
download(String fileName) |
void |
download(String path,
String fileName)
下载文件
|
SohelpFileService |
getInstance()
获取SohelpFileService实例
|
void |
preview(String fileName,
javax.servlet.http.HttpServletResponse response)
文件预览
|
void |
rename(String oldFileName,
String newFileName)
重命名文件
|
void |
upload(org.springframework.web.multipart.MultipartFile tempFile) |
void |
upload(String path,
org.springframework.web.multipart.MultipartFile tempFile) |
public void upload(org.springframework.web.multipart.MultipartFile tempFile) throws BusiException, IOException
public void upload(String path, org.springframework.web.multipart.MultipartFile tempFile) throws IOException, BusiException
public void download(String fileName) throws BusiException
fileName
- BusiException
public void download(String path, String fileName) throws BusiException
BusiException
public void delete(String fileName) throws BusiException
fileName
- BusiException
public void delete(String path, String fileName) throws BusiException
BusiException
public void rename(String oldFileName, String newFileName) throws BusiException
BusiException
public void preview(String fileName, javax.servlet.http.HttpServletResponse response) throws BusiException
BusiException
public SohelpFileService getInstance()
Copyright © 2025. All rights reserved.