Bug 59747: Adjust order of first two entries in the resulting Zip to try to enable some external tools to auto-detect the file-type

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1809357 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2017-09-22 21:19:39 +00:00
parent ad5232f8f8
commit 7a85c39371
1 changed files with 4 additions and 4 deletions

View File

@ -554,16 +554,16 @@ public final class ZipPackage extends OPCPackage {
}
}
// Save content type part.
LOG.log(POILogger.DEBUG,"Save content types part");
this.contentTypeManager.save(zos);
// Save package relationships part.
LOG.log(POILogger.DEBUG,"Save package relationships");
ZipPartMarshaller.marshallRelationshipPart(this.getRelationships(),
PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME,
zos);
// Save content type part.
LOG.log(POILogger.DEBUG,"Save content types part");
this.contentTypeManager.save(zos);
// Save parts.
for (PackagePart part : getParts()) {
// If the part is a relationship part, we don't save it, it's