Class ZipPackage

java.lang.Object
org.apache.poi.openxml4j.opc.OPCPackage
org.apache.poi.openxml4j.opc.ZipPackage
All Implemented Interfaces:
Closeable, AutoCloseable, RelationshipSource

public final class ZipPackage extends OPCPackage
Physical zip package.
  • Constructor Details

    • ZipPackage

      public ZipPackage()
      Constructor. Creates a new, empty ZipPackage.
  • Method Details

    • setUseTempFilePackageParts

      public static void setUseTempFilePackageParts(boolean tempFilePackageParts)
      Parameters:
      tempFilePackageParts - whether to save package part data in temp files to save memory
    • setEncryptTempFilePackageParts

      public static void setEncryptTempFilePackageParts(boolean encryptTempFiles)
      Parameters:
      encryptTempFiles - whether to encrypt package part temp files
    • useTempFilePackageParts

      public static boolean useTempFilePackageParts()
      Returns:
      whether package part data is stored in temp files to save memory
    • encryptTempFilePackageParts

      public static boolean encryptTempFilePackageParts()
      Returns:
      whether package part temp files are encrypted
    • saveImpl

      public void saveImpl(OutputStream outputStream)
      Save this package into the specified stream
      Parameters:
      outputStream - The stream use to save this package.
      See Also:
    • getZipArchive

      public ZipEntrySource getZipArchive()
      Get the zip archive
      Returns:
      The zip archive.
    • isClosed

      public boolean isClosed()
      Description copied from class: OPCPackage
      Has close been called already?
      Specified by:
      isClosed in class OPCPackage