MCPcopy Create free account
hub / github.com/apache/poi / write

Method write

src/ooxml/java/org/apache/poi/POIXMLDocument.java:201–211  ·  view source on GitHub ↗

Write out this document to an Outputstream. @param stream - the java OutputStream you wish to write the file to @exception IOException if anything can't be written.

(OutputStream stream)

Source from the content-addressed store, hash-verified

199 * @exception IOException if anything can't be written.
200 */
201 public final void write(OutputStream stream) throws IOException {
202 //force all children to commit their changes into the underlying OOXML Package
203 Set<PackagePart> context = new HashSet<PackagePart>();
204 onSave(context);
205 context.clear();
206
207 //save extended and custom properties
208 getProperties().commit();
209
210 getPackage().save(stream);
211 }
212}

Callers

nothing calls this directly

Calls 6

getPropertiesMethod · 0.95
getPackageMethod · 0.95
onSaveMethod · 0.80
clearMethod · 0.45
commitMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected