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