Example usage for Java org.apache.poi.openxml4j.opc OPCPackage fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Close the open, writable package and save its content. |
PackagePart | createPart(PackagePartName partName, String contentType, boolean loadRelationships) Create and add a part, with the specified name and content type, to the package. |
PackagePart | createPart(PackagePartName partName, String contentType, ByteArrayOutputStream content) Add a part to the package. |
PackageProperties | getPackageProperties() Retrieves or creates if none exists, core package property part. |
PackagePart | getPart(PackagePartName partName) Retrieve a part identified by its name. |
PackagePart | getPart(PackageRelationship partRel) Get the target part from the specified relationship. |
ArrayList | getParts() Load the parts of the archive if it has not been done yet. |
ArrayList | getPartsByContentType(String contentType) Retrieve parts by content type. |
ArrayList | getPartsByRelationshipType(String relationshipType) Retrieve parts by relationship type. |
PackageRelationshipCollection | getRelationships() Retrieves all package relationships. |
PackageRelationshipCollection | getRelationshipsByType(String relationshipType) Retrieves all relationships with the specified type. |
OPCPackage | open(String path, PackageAccess access) Open a package. |
OPCPackage | open(File file, PackageAccess access) Open a package. |
OPCPackage | open(String path) Open a package with read/write permission. |
OPCPackage | open(File file) Open a package with read/write permission. |
OPCPackage | open(ZipEntrySource zipEntry) Open an user provided ZipEntrySource with read-only permission. |
OPCPackage | open(InputStream in) Open a package. |
void | removePart(PackagePart part) Remove the specified part in this package. |
void | removePart(PackagePartName partName) Remove a part in this package. |
void | removeRelationship(String id) Delete a relationship from this package. |
void | revert() Close the package WITHOUT saving its content. |
void | save(File targetFile) Save the document in the specified file. |
void | save(OutputStream outputStream) Save the document in the specified output stream. |