Java org.apache.poi.openxml4j.opc OPCPackage fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.openxml4j.opc OPCPackage fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.openxml4j.opc OPCPackage.

The text is from its open source code.

Method

voidclose()
Close the open, writable package and save its content.
PackagePartcreatePart(PackagePartName partName, String contentType, boolean loadRelationships)
Create and add a part, with the specified name and content type, to the package.
PackagePartcreatePart(PackagePartName partName, String contentType, ByteArrayOutputStream content)
Add a part to the package.
PackagePropertiesgetPackageProperties()
Retrieves or creates if none exists, core package property part.
PackagePartgetPart(PackagePartName partName)
Retrieve a part identified by its name.
PackagePartgetPart(PackageRelationship partRel)
Get the target part from the specified relationship.
ArrayListgetParts()
Load the parts of the archive if it has not been done yet.
ArrayListgetPartsByContentType(String contentType)
Retrieve parts by content type.
ArrayListgetPartsByRelationshipType(String relationshipType)
Retrieve parts by relationship type.
PackageRelationshipCollectiongetRelationships()
Retrieves all package relationships.
PackageRelationshipCollectiongetRelationshipsByType(String relationshipType)
Retrieves all relationships with the specified type.
OPCPackageopen(String path, PackageAccess access)
Open a package.
OPCPackageopen(File file, PackageAccess access)
Open a package.
OPCPackageopen(String path)
Open a package with read/write permission.
OPCPackageopen(File file)
Open a package with read/write permission.
OPCPackageopen(ZipEntrySource zipEntry)
Open an user provided ZipEntrySource with read-only permission.
OPCPackageopen(InputStream in)
Open a package.
voidremovePart(PackagePart part)
Remove the specified part in this package.
voidremovePart(PackagePartName partName)
Remove a part in this package.
voidremoveRelationship(String id)
Delete a relationship from this package.
voidrevert()
Close the package WITHOUT saving its content.
voidsave(File targetFile)
Save the document in the specified file.
voidsave(OutputStream outputStream)
Save the document in the specified output stream.