public class XSSFExportToXml
extends java.lang.Object
implements java.util.Comparator<java.lang.String>
Constructor and Description |
---|
XSSFExportToXml(XSSFMap map)
Creates a new exporter and sets the mapping to be used when generating the XML output document
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String leftXpath, java.lang.String rightXpath)
Compares two xpaths to define an ordering according to the XML Schema
(比较两个 xpath 以根据 XML Schema 定义排序)
|
void |
exportToXML(java.io.OutputStream os, boolean validate)
Exports the data in an XML stream
(以 XML 流的形式导出数据)
|
void |
exportToXML(java.io.OutputStream os, java.lang.String encoding, boolean validate)
Exports the data in an XML stream
(以 XML 流的形式导出数据)
|
public XSSFExportToXml(XSSFMap map)
map
- the mapping rule to be used
(map - 要使用的映射规则)
public void exportToXML(java.io.OutputStream os, boolean validate) throws org.xml.sax.SAXException, javax.xml.transform.TransformerException
os
- OutputStream in which will contain the output XML
(os - OutputStream 将包含输出 XML)
validate
- if true, validates the XML against the XML Schema
(validate - 如果为 true,则根据 XML Schema 验证 XML)
org.xml.sax.SAXException
- If validating the document fails
(org.xml.sax.SAXException - 如果验证文档失败)
javax.xml.transform.TransformerException
- If transforming the document fails
(javax.xml.transform.TransformerException - 如果转换文档失败)
public void exportToXML(java.io.OutputStream os, java.lang.String encoding, boolean validate) throws org.xml.sax.SAXException, javax.xml.transform.TransformerException
os
- OutputStream in which will contain the output XML
(os - OutputStream 将包含输出 XML)
encoding
- the output charset encoding
(encoding - 输出字符集编码)
validate
- if true, validates the XML against the XML Schema
(validate - 如果为 true,则根据 XML Schema 验证 XML)
org.xml.sax.SAXException
- If validating the document fails
(org.xml.sax.SAXException - 如果验证文档失败)
javax.xml.transform.TransformerException
- If transforming the document fails
(javax.xml.transform.TransformerException - 如果转换文档失败)
public int compare(java.lang.String leftXpath, java.lang.String rightXpath)
compare
in interface
java.util.Comparator<java.lang.String>
(在接口 java.util.Comparator 中比较
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.