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
|
void |
exportToXML(java.io.OutputStream os,
boolean validate)
Exports the data in an XML stream
|
void |
exportToXML(java.io.OutputStream os,
java.lang.String encoding,
boolean validate)
Exports the data in an XML stream
|
public XSSFExportToXml(XSSFMap map)
map
- the mapping rule to be usedpublic 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 XMLvalidate
- if true, validates the XML against the XML Schemaorg.xml.sax.SAXException
- If validating the document failsjavax.xml.transform.TransformerException
- If transforming the document failspublic 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 XMLencoding
- the output charset encodingvalidate
- if true, validates the XML against the XML Schemaorg.xml.sax.SAXException
- If validating the document failsjavax.xml.transform.TransformerException
- If transforming the document failspublic int compare(java.lang.String leftXpath, java.lang.String rightXpath)
compare
in interface java.util.Comparator<java.lang.String>
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.