After the design changes due to embedded documents (issue 166) the Package will be aware of all its open documents and may now save them all (securing all potential changes).
Any document will therefore dispatch the save call in the future to its OdfPackage.
In addition the method OdfPackage.save() without parameter will be added.
This new method will distinct the save of changes into the original document/package from a save into a new document/package.
The reason herefore is that JDK ZIP implementation is read-only and the save into the original document always requires the copy of all resources (taking time).
The new method gives the user the change to trigger this extra work of copying only when required.
The existing OdfPackage.save(InputStream in) could not distinct any earlier, if the stream will be written into the original or a new file and copying was always being done.
NOTE: Still a fallback for save(..) into original Package will be provided using exception handling.
|Workflow||Default workflow, editable Closed status [ 12634299 ]||jira [ 12634590 ]|
|Workflow||jira [ 12634093 ]||Default workflow, editable Closed status [ 12634299 ]|
|Field||Original Value||New Value|