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