public final class ZipPartMarshaller extends java.lang.Object implements PartMarshaller
Constructor and Description |
---|
ZipPartMarshaller() |
Modifier and Type | Method and Description |
---|---|
boolean |
marshall(PackagePart part,
java.io.OutputStream os)
Save the specified part.
|
static boolean |
marshallRelationshipPart(PackageRelationshipCollection rels,
PackagePartName relPartName,
org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zos)
Save relationships into the part.
|
public boolean marshall(PackagePart part, java.io.OutputStream os) throws OpenXML4JException
marshall
in interface PartMarshaller
part
- Part to marshall.os
- The output stream into which the part will be marshall.OpenXML4JException
- Throws if an internal exception is thrown.public static boolean marshallRelationshipPart(PackageRelationshipCollection rels, PackagePartName relPartName, org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream zos)
rels
- The relationships collection to marshall.relPartName
- Part name of the relationship part to marshall.zos
- Zip output stream in which to save the XML content of the
relationships serialization.Copyright 2020 The Apache Software Foundation or its licensors, as applicable.