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