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
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public XSSFExportToXml(XSSFMap map)
map
- the mapping rule to be usedpublic void exportToXML(OutputStream os, boolean validate) throws SAXException, TransformerException
os
- OutputStream in which will contain the output XMLvalidate
- if true, validates the XML against the XML SchemaSAXException
- If validating the document failsTransformerException
- If transforming the document failspublic void exportToXML(OutputStream os, String encoding, boolean validate) throws SAXException, TransformerException
os
- OutputStream in which will contain the output XMLencoding
- the output charset encodingvalidate
- if true, validates the XML against the XML SchemaSAXException
- If validating the document failsTransformerException
- If transforming the document failspublic int compare(String leftXpath, String rightXpath)
compare
in interface Comparator<String>
Copyright © 2010 - 2020 Adobe. All Rights Reserved