Package cn.dreamfame.core.boot.file
Class DreamFileProxyFactory
java.lang.Object
cn.dreamfame.core.boot.file.DreamFileProxyFactory
- All Implemented Interfaces:
IFileProxy
- Author:
- dreamfame
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DreamFileProxyFactory
public DreamFileProxyFactory()
-
-
Method Details
-
rename
Description copied from interface:IFileProxy文件重命名策略- Specified by:
renamein interfaceIFileProxy- Parameters:
f- 文件path- 路径- Returns:
- File
-
path
Description copied from interface:IFileProxy返回路径[物理路径][虚拟路径]- Specified by:
pathin interfaceIFileProxy- Parameters:
f- 文件dir- 目录- Returns:
- String
-
getFileExt
获取文件后缀- Parameters:
fileName- 文件名- Returns:
- 文件后缀
-
getFileDir
获取文件保存地址- Parameters:
dir- 目录saveDir- 保存目录- Returns:
- 地址
-
compress
图片压缩- Specified by:
compressin interfaceIFileProxy- Parameters:
path- 文件地址
-