public final class ZipPartMarshaller extends Object implements PartMarshaller
Constructor and Description |
---|
ZipPartMarshaller() |
Modifier and Type | Method and Description |
---|---|
boolean |
marshall(PackagePart part,
OutputStream os)
Save the specified part.
|
static boolean |
marshallRelationshipPart(PackageRelationshipCollection rels,
PackagePartName relPartName,
ZipOutputStream zos)
Save relationships into the part.
|
public boolean marshall(PackagePart part, 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, ZipOutputStream 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. All rights reserved.