OpcPackage — Aspose.Slides FOSS Java API Reference

OpcPackage — Minimal OPC (Open Packaging Conventions) package backed by a ZIP archive.

Package: org.aspose.slides.foss.internal.opc


Properties

PropertyTypeAccessDescription
partNamesSet<String>Read/Write

Methods

MethodReturnsDescription
load(InputStream in)voidLoads a package from a ZIP input stream.
save(OutputStream out)voidSaves the package as a ZIP archive to the given output stream.
hasPart(String uri)booleanReturns whether a part with the given URI exists.
getPartBytes(String uri)byte[]Returns the raw bytes of the given part, or null if not found.
setPartBytes(String uri, byte[] data)voidSets the raw bytes for the given part URI.
removePart(String uri)voidRemoves a part by URI.
getPartNames()Set<String>Returns all part URIs as an unmodifiable set.
clear()voidClears all parts, releasing memory held by byte arrays.
parseXml(String uri)DocumentParses the given part as an XML document.
serializeXml(String uri, Document doc)voidSerializes the given XML document and stores it as a part.
newDocument()DocumentCreates a new empty XML document.

See Also