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:
java.io.Closeable,java.lang.AutoCloseable,RelationshipSource
public final class ZipPackage extends OPCPackage
Physical zip package.
-
-
Constructor Summary
Constructors Constructor Description ZipPackage()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanencryptTempFilePackageParts()ZipEntrySourcegetZipArchive()Get the zip archivebooleanisClosed()Has close been called already?voidsaveImpl(java.io.OutputStream outputStream)Save this package into the specified streamstatic voidsetEncryptTempFilePackageParts(boolean encryptTempFiles)static voidsetUseTempFilePackageParts(boolean tempFilePackageParts)static booleanuseTempFilePackageParts()-
Methods 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
-
-
-
-
Method Detail
-
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(java.io.OutputStream outputStream)
Save this package into the specified stream- Parameters:
outputStream- The stream use to save this package.- See Also:
OPCPackage.save(OutputStream)
-
getZipArchive
public ZipEntrySource 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
-
-