public class XSSFExportToXml extends Object implements Comparator<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(String leftXpath,
String rightXpath)
Compares two xpaths to define an ordering according to the XML Schema
|
void |
exportToXML(OutputStream os,
boolean validate)
Exports the data in an XML stream
|
void |
exportToXML(OutputStream os,
String encoding,
boolean validate)
Exports the data in an XML stream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic XSSFExportToXml(XSSFMap map)
map - the mapping rule to be usedpublic void exportToXML(OutputStream os, boolean validate) throws SAXException, ParserConfigurationException, TransformerException
os - OutputStream in which will contain the output XMLvalidate - if true, validates the XML againts the XML SchemaSAXExceptionTransformerExceptionParserConfigurationExceptionpublic void exportToXML(OutputStream os, String encoding, boolean validate) throws SAXException, ParserConfigurationException, TransformerException
os - OutputStream in which will contain the output XMLencoding - the output charset encodingvalidate - if true, validates the XML againts the XML SchemaSAXExceptionParserConfigurationExceptionTransformerExceptionInvalidFormatExceptionpublic int compare(String leftXpath, String rightXpath)
compare in interface Comparator<String>Copyright © 2020. All rights reserved.