public class TempsDir extends VirtualContainer
| 限定符和类型 | 字段和说明 |
|---|---|
static Pattern |
TempFileNameRegex |
static String |
TempFilePrefix |
| 限定符和类型 | 方法和说明 |
|---|---|
ST_Loc |
add(Page page)
向容器内加入模板
|
TempsDir |
add(Path res)
向目录中加入模板文件
加入的资源将会被复制到指定目录,与原有文件
|
ST_Loc |
add(String fileName,
Page page)
向目录中加入模板页面
|
Page |
get(String fileName)
根据文件名获取模板页面对象
|
Integer |
getMaxTempIndex()
获取当前容器内最大的模板文件索引号
|
addRaw, clean, close, exit, flush, flushContainerByName, flushFileByName, getAbsLoc, getContainer, getContainerName, getContainerPath, getFile, getObj, getParent, getSysAbsPath, obtainContainer, putFile, putObj, setParentpublic static final Pattern TempFileNameRegex
public TempsDir(Path fullDir) throws IllegalArgumentException
public TempsDir add(Path res) throws IOException
加入的资源将会被复制到指定目录,与原有文件
res - 资源IOException - 文件复制过程中发生的异常public ST_Loc add(String fileName, Page page)
fileName - 模板文件名称page - 模板页面public ST_Loc add(Page page) throws IOException
page - 模板页面IOException - 文件读写异常public Page get(String fileName) throws org.dom4j.DocumentException, FileNotFoundException
fileName - 文件名org.dom4j.DocumentException - 文档无法解析FileNotFoundException - 文件不存在public Integer getMaxTempIndex() throws IOException
IOException - 文件读取异常Copyright © 2021. All rights reserved.