public class XMLDataSource extends Object implements DataSource
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.
Constructor and Description |
---|
XMLDataSource() |
Modifier and Type | Method and Description |
---|---|
String |
getDocumentContent()
获取xsl-fo文档内容
|
Reader |
getSourceReader()
获取数据源读取器
|
Integer |
getTotalPage(org.apache.fop.apps.FopFactory fopFactory,
org.apache.fop.apps.FOUserAgent foAgent)
获取总页数
|
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, saxTransform
public Integer getTotalPage(org.apache.fop.apps.FopFactory fopFactory, org.apache.fop.apps.FOUserAgent foAgent)
getTotalPage
in interface DataSource
fopFactory
- fop工厂foAgent
- fo代理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
- 输出流public String getDocumentContent()
getDocumentContent
in interface DataSource
Copyright © 2024. All rights reserved.