public class DocDir extends VirtualContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
AnnotationsFileName
注释入口文件名称
|
static String |
AnnotsDir
注释文件虚拟容器
|
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
自定义标签容器名称
|
static String |
TempsDir
临时文件容器
|
| Modifier and Type | Method and Description |
|---|---|
DocDir |
addResource(Path resource)
增加资源
|
Path |
addResourceWithPath(Path resource)
增加资源 并返回资源在文档中的绝对路径
|
Annotations |
getAnnotations()
获取注释列表对象
|
AnnotsDir |
getAnnots()
获取 注释容器
|
Document |
getDocument()
获取文档的根节点
|
Res |
getDocumentRes()
获取文档自身资源索引对象
|
Integer |
getIndex()
获取文档索引
|
PagesDir |
getPages()
获取 页面存储目录
|
Res |
getPublicRes()
获取文档公共资源索引
|
ResDir |
getRes()
获取资源容器
|
Path |
getResource(String name)
获取资源
|
SignsDir |
getSigns()
获取 数字签名存储目录
|
VirtualContainer |
getTags()
获取 自定义标签容器
|
TempsDir |
getTemps()
获取 模板容器
|
AnnotsDir |
obtainAnnots()
获取 注释容器
|
PagesDir |
obtainPages()
获取 页面存储目录
|
ResDir |
obtainRes()
获取 资源文件夹
|
SignsDir |
obtainSigns()
获取 数字签名存储目录
|
VirtualContainer |
obtainTags()
获取 自定义标签容器
|
TempsDir |
obtainTemps()
获取 模板容器
|
DocDir |
setAnnotations(Annotations annotations)
设置注释列表对象
|
DocDir |
setDocument(Document document)
设置 文档的根节点
|
DocDir |
setDocumentRes(Res documentRes)
设置 文档自身资源索引
|
DocDir |
setPublicRes(Res publicRes)
设置 文档公共资源索引
|
addRaw, clean, close, deleteFile, exist, exit, flush, flushContainerByName, flushFileByName, getAbsLoc, getContainer, getContainerName, getContainerPath, getFile, getFile, getObj, getObj, getParent, getSysAbsPath, obtainContainer, putFile, putFile, putFile, putFileWithPath, putObj, setParentpublic static final String DocContainerPrefix
public static final String DocumentFileName
public static final String PublicResFileName
public static final String DocumentResFileName
public static final String SignsDir
public static final String SignContainerPrefix
public static final String TagsDir
GMT0099 OFD 2.0
public static final String TempsDir
OFD 2.0
public static final String PagesDir
public static final String PageContainerPrefix
public static final String ResDir
public static final String AnnotsDir
GMT0099 OFD 2.0
public static final String AnnotationsFileName
public static final String Attachments
public DocDir(Path fullDir) throws IllegalArgumentException
IllegalArgumentExceptionpublic Integer getIndex()
public Document getDocument() throws FileNotFoundException, org.dom4j.DocumentException
FileNotFoundException - 文档的根节点文件不存在org.dom4j.DocumentException - 文档的根节点文件解析异常public DocDir setDocument(Document document)
document - 文档的根节点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 © 2026. All rights reserved.