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.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
os
- OutputStream in which will contain the output XMLvalidate
- if true, validates the XML againts the XML Schemaorg.xml.sax.SAXException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
public void exportToXML(java.io.OutputStream os, java.lang.String encoding, boolean validate) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
os
- OutputStream in which will contain the output XMLencoding
- the output charset encodingvalidate
- if true, validates the XML againts the XML Schemaorg.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
InvalidFormatException
public int compare(java.lang.String leftXpath, java.lang.String rightXpath)
compare
in interface java.util.Comparator<java.lang.String>
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.