|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.xssf.extractor.XSSFExportToXml
public class XSSFExportToXml
Maps an XLSX to an XML according to one of the mapping defined. The output XML Schema must respect this limitations:
| Constructor Summary | |
|---|---|
XSSFExportToXml(XSSFMap map)
Creates a new exporter and sets the mapping to be used when generating the XML output document |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public XSSFExportToXml(XSSFMap map)
map - the mapping rule to be used| Method Detail |
|---|
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 XMLvalidate - if true, validates the XML against the XML Schema
org.xml.sax.SAXException - If validating the document fails
javax.xml.transform.TransformerException - If transforming the document fails
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 XMLencoding - the output charset encodingvalidate - if true, validates the XML against the XML Schema
org.xml.sax.SAXException - If validating the document fails
javax.xml.transform.TransformerException - If transforming the document fails
public int compare(java.lang.String leftXpath,
java.lang.String rightXpath)
compare in interface java.util.Comparator<java.lang.String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||