Package org.apache.poi.openxml4j.opc
Class ZipPackage
java.lang.Object
org.apache.poi.openxml4j.opc.OPCPackage
org.apache.poi.openxml4j.opc.ZipPackage
- All Implemented Interfaces:
Closeable,AutoCloseable,RelationshipSource
Physical zip package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanGet the zip archivebooleanisClosed()Has close been called already?voidsaveImpl(OutputStream outputStream) Save this package into the specified streamstatic voidsetEncryptTempFilePackageParts(boolean encryptTempFiles) static voidsetUseTempFilePackageParts(boolean tempFilePackageParts) static booleanMethods inherited from class org.apache.poi.openxml4j.opc.OPCPackage
addExternalRelationship, addExternalRelationship, addMarshaller, addRelationship, addRelationship, addThumbnail, addThumbnail, addUnmarshaller, clearRelationships, close, containPart, create, create, create, createPart, createPart, deletePart, deletePartRecursive, ensureRelationships, flush, getPackageAccess, getPackageProperties, getPart, getPart, getParts, getPartsByContentType, getPartsByName, getPartsByRelationshipType, getRelationship, getRelationships, getRelationshipsByType, getUnusedPartIndex, hasRelationships, isRelationshipExists, isStrictOoxmlFormat, open, open, open, open, open, open, openOrCreate, registerPartAndContentType, removeMarshaller, removePart, removePart, removePartRecursive, removeRelationship, removeUnmarshaller, replaceContentType, revert, save, save, toString, unregisterPartAndContentType, validatePackage
-
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
Save this package into the specified stream- Parameters:
outputStream- The stream use to save this package.- See Also:
-
getZipArchive
Get the zip archive- Returns:
- The zip archive.
-
isClosed
public boolean isClosed()Description copied from class:OPCPackageHas close been called already?- Specified by:
isClosedin classOPCPackage
-