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 to the given stream.
|
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
- The PackagePart
to saveos
- The stream to write the data toPOILogger
is used to provide more information.OpenXML4JException
- Throws if the stream cannot be written to or 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.POILogger
is used to provide more information.Copyright 2021 The Apache Software Foundation or its licensors, as applicable.