类 TemplateHelper
java.lang.Object
cool.scx.ext.cms.template.TemplateHelper
Cms 模板
- 版本:
- 0.3.6
- 作者:
- scx567888
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static cool.scx.vo.Jsondelete.static cool.scx.vo.JsongetFileContent(String filePath) 获取文件内容static cool.scx.vo.Jsonindex()Index.static cool.scx.vo.Jsonrename.static cool.scx.vo.JsonsetFileContent(String filePath, String fileContent) astatic cool.scx.vo.Jsona
-
构造器详细资料
-
TemplateHelper
public TemplateHelper()
-
-
方法详细资料
-
index
Index.
- 返回:
- a
Jsonobject. - 抛出:
IOException- if any.
-
getFileContent
获取文件内容- 参数:
filePath- 文件路径- 返回:
- a
Jsonobject.
-
setFileContent
public static cool.scx.vo.Json setFileContent(String filePath, String fileContent) throws IOException a- 参数:
filePath- afileContent- a- 返回:
- a
- 抛出:
IOException- a
-
delete
delete.
- 参数:
filePath- aMapobject.- 返回:
- a
Jsonobject. - 抛出:
IOException- if any.
-
upload
public static cool.scx.vo.Json upload(cool.scx.type.UploadedEntity file, String filePath) throws IOException a- 参数:
file- afilePath- a- 返回:
- a
- 抛出:
IOException- a
-
rename
rename.
- 参数:
newFilePath- 原文件路径oldFilePath- 新文件路径- 返回:
- a
Jsonobject.
-