public class DocumentDataSource extends Object
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under the Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
templateData
模板数据
|
protected String |
templatePath
模板路径
|
Constructor and Description |
---|
DocumentDataSource()
无参构造
|
Modifier and Type | Method and Description |
---|---|
Reader |
getSourceReader()
获取数据源读取器
|
protected boolean |
isNotEmptyTemplateData()
模板数据是否非空
|
protected InputStream |
loadTemplateInputStream()
加载模板输入流
|
protected InputStream |
processTemplate()
处理模板
|
void |
transform(org.apache.fop.apps.FopFactory fopFactory,
org.apache.fop.apps.FOUserAgent foAgent,
OutputStream outputStream)
转换
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
domTransform, getDocumentContent, getTotalPage, saxTransform
protected String templatePath
protected InputStream processTemplate()
public Reader getSourceReader()
getSourceReader
in interface DataSource
public void transform(org.apache.fop.apps.FopFactory fopFactory, org.apache.fop.apps.FOUserAgent foAgent, OutputStream outputStream)
transform
in interface DataSource
fopFactory
- fop工厂foAgent
- fo代理outputStream
- 输出流protected boolean isNotEmptyTemplateData()
protected InputStream loadTemplateInputStream()
Copyright © 2024. All rights reserved.