public class DocDir extends VirtualContainer
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
AnnotationsFileName
注释入口文件名称
|
static String |
AnnotsDir
注释文件虚拟容器
GMT0099 OFD 2.0
|
static String |
Attachments
附件入口文件名称
|
static String |
DocContainerPrefix
文档容器名称前缀
|
static String |
DocumentFileName
文档的根节点描述文件名称
|
static String |
DocumentResFileName
文档自身资源索引描述文件名称
|
static String |
PageContainerPrefix
页面容器名称前缀
|
static String |
PagesDir
页面容器
|
static String |
PublicResFileName
文档公共资源索引描述文件名称
|
static String |
ResDir
资源容器
|
static String |
SignContainerPrefix
数字签名容器名称前缀
|
static String |
SignsDir
数字签名容器名称
|
static String |
TagsDir
自定义标签容器名称
GMT0099 OFD 2.0
|
static String |
TempsDir
临时文件容器
OFD 2.0
|
| 限定符和类型 | 方法和说明 |
|---|---|
DocDir |
addResource(Path resource)
增加资源
|
Path |
addResourceWithPath(Path resource)
增加资源 并返回资源在文档中的绝对路径
|
Annotations |
getAnnotations()
获取注释列表对象
|
AnnotsDir |
getAnnots()
获取 注释容器
GMT0099 OFD 2.0
|
Document |
getDocument()
获取文档的根节点
|
Res |
getDocumentRes()
获取文档自身资源索引对象
|
Integer |
getIndex()
获取文档索引
|
PagesDir |
getPages()
获取 页面存储目录
|
Res |
getPublicRes()
获取文档公共资源索引
|
ResDir |
getRes()
获取资源容器
|
Path |
getResource(String name)
获取资源
|
SignsDir |
getSigns()
获取 数字签名存储目录
|
VirtualContainer |
getTags()
获取 自定义标签容器
GMT0099 OFD 2.0
|
TempsDir |
getTemps()
获取 模板容器
GMT0099 OFD 2.0
|
AnnotsDir |
obtainAnnots()
获取 注释容器
如果目录不存在则会创建
GMT0099 OFD 2.0
|
PagesDir |
obtainPages()
获取 页面存储目录
如果页面存储目录则会创建
|
ResDir |
obtainRes()
获取 资源文件夹
如果资源文件不存在则创建
|
SignsDir |
obtainSigns()
获取 数字签名存储目录
如果数字签名存储目录不存在则创建
|
VirtualContainer |
obtainTags()
获取 自定义标签容器
如果目录不存在则会创建
GMT0099 OFD 2.0
|
TempsDir |
obtainTemps()
获取 模板容器
如果目录不存在则会创建
GMT0099 OFD 2.0
|
DocDir |
setAnnotations(Annotations annotations)
设置注释列表对象
|
DocDir |
setDocument(Document document)
设置 文档的根节点
|
DocDir |
setDocumentRes(Res documentRes)
设置 文档自身资源索引
|
DocDir |
setPublicRes(Res publicRes)
设置 文档公共资源索引
|
addRaw, clean, close, exist, exit, flush, flushContainerByName, flushFileByName, getAbsLoc, getContainer, getContainerName, getContainerPath, getFile, getObj, getParent, getSysAbsPath, obtainContainer, putFile, putFileWithPath, putObj, setParentpublic DocDir(Path fullDir) throws IllegalArgumentException
public Integer getIndex()
public Document getDocument() throws FileNotFoundException, org.dom4j.DocumentException
FileNotFoundException - 文档的根节点文件不存在org.dom4j.DocumentException - 文档的根节点文件解析异常public Res getPublicRes() throws FileNotFoundException, org.dom4j.DocumentException
FileNotFoundException - 文档公共资源索引文件不存在org.dom4j.DocumentException - 文档公共资源索引文件解析异常public DocDir setPublicRes(Res publicRes)
publicRes - 文档公共资源索引public Res getDocumentRes() throws FileNotFoundException, org.dom4j.DocumentException
FileNotFoundException - 文档自身资源索引文件不存在org.dom4j.DocumentException - 文档自身资源索引文件解析异常public Annotations getAnnotations() throws FileNotFoundException, org.dom4j.DocumentException
FileNotFoundException - 文档自身资源索引文件不存在org.dom4j.DocumentException - 文档自身资源索引文件解析异常public DocDir setAnnotations(Annotations annotations)
annotations - 注释列表对象public DocDir setDocumentRes(Res documentRes)
documentRes - 文档自身资源索引public ResDir getRes() throws FileNotFoundException
FileNotFoundException - 资源容器不存在public ResDir obtainRes()
如果资源文件不存在则创建
public SignsDir getSigns() throws FileNotFoundException
FileNotFoundException - 数字签名存储目录不存在public SignsDir obtainSigns()
如果数字签名存储目录不存在则创建
public PagesDir getPages() throws FileNotFoundException
FileNotFoundException - 页面存储目录不存在public PagesDir obtainPages()
如果页面存储目录则会创建
public VirtualContainer obtainTags()
如果目录不存在则会创建
GMT0099 OFD 2.0
public VirtualContainer getTags() throws FileNotFoundException
GMT0099 OFD 2.0
FileNotFoundException - 页面存储目录不存在public TempsDir obtainTemps()
如果目录不存在则会创建
GMT0099 OFD 2.0
public TempsDir getTemps() throws FileNotFoundException
GMT0099 OFD 2.0
FileNotFoundException - 页面存储目录不存在public AnnotsDir obtainAnnots()
如果目录不存在则会创建
GMT0099 OFD 2.0
public AnnotsDir getAnnots() throws FileNotFoundException
GMT0099 OFD 2.0
FileNotFoundException - 页面存储目录不存在public DocDir addResource(Path resource) throws IOException
resource - 资源IOException - 文件复制过程中IO异常public Path addResourceWithPath(Path resource) throws IOException
resource - 资源IOException - 文件复制过程中IO异常public Path getResource(String name) throws FileNotFoundException
name - 资源名称(包含后缀名称)FileNotFoundException - 资源不存在Copyright © 2023. All rights reserved.