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)
| 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 | } |
nothing calls this directly
no test coverage detected