use of org.openxmlformats.schemas.spreadsheetml.x2006.main.SingleXmlCellsDocument in project poi by apache.
the class SingleXmlCells method writeTo.
protected void writeTo(OutputStream out) throws IOException {
SingleXmlCellsDocument doc = SingleXmlCellsDocument.Factory.newInstance();
doc.setSingleXmlCells(singleXMLCells);
doc.save(out, DEFAULT_XML_OPTIONS);
}
use of org.openxmlformats.schemas.spreadsheetml.x2006.main.SingleXmlCellsDocument in project poi by apache.
the class SingleXmlCells method readFrom.
public void readFrom(InputStream is) throws IOException {
try {
SingleXmlCellsDocument doc = SingleXmlCellsDocument.Factory.parse(is, DEFAULT_XML_OPTIONS);
singleXMLCells = doc.getSingleXmlCells();
} catch (XmlException e) {
throw new IOException(e.getLocalizedMessage());
}
}
Aggregations