@Service public class SohelpFileUploadService extends Object
构造器和说明 |
---|
SohelpFileUploadService() |
限定符和类型 | 方法和说明 |
---|---|
void |
delete(String moduleName,
String fileName)
删除文件
|
boolean |
exists(String moduleName,
String fileName)
判断文件是否存在
|
File |
getFile(String moduleName,
String fileName)
获取File
|
Map |
getFileInfo(String moduleName,
String fileName)
获取文件信息
|
InputStream |
getInputStream(String moduleName,
String fileName)
获取InputStream
|
boolean |
upload(String moduleName,
String fileName,
InputStream inputStream)
上传的文件存储自定义目录下
|
public boolean upload(String moduleName, String fileName, InputStream inputStream) throws BusiException
moduleName
- 存储位置 例如: crmfileName
- 存储文件名BusiException
public void delete(String moduleName, String fileName) throws BusiException
moduleName
- fileName
- BusiException
public InputStream getInputStream(String moduleName, String fileName) throws BusiException
moduleName
- 目录名fileName
- 文件名BusiException
public File getFile(String moduleName, String fileName) throws BusiException
moduleName
- fileName
- BusiException
public boolean exists(String moduleName, String fileName) throws BusiException
moduleName
- fileName
- BusiException
public Map getFileInfo(String moduleName, String fileName) throws BusiException
moduleName
- fileName
- BusiException
Copyright © 2025. All rights reserved.