|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.openxml4j.opc.OPCPackage org.apache.poi.openxml4j.opc.Package org.apache.poi.openxml4j.opc.ZipPackage
public final class ZipPackage
Physical zip package.
Field Summary |
---|
Fields inherited from class org.apache.poi.openxml4j.opc.OPCPackage |
---|
contentTypeManager, defaultPackageAccess, defaultPartMarshaller, isDirty, originalPackagePath, output, packageProperties, partList, partMarshallers, partUnmarshallers, relationships |
Constructor Summary | |
---|---|
ZipPackage()
Constructor. |
Method Summary | |
---|---|
protected void |
closeImpl()
Close and save the package. |
protected PackagePart |
createPartImpl(PackagePartName partName,
java.lang.String contentType,
boolean loadRelationships)
Create a new MemoryPackagePart from the specified URI and content type aram partName The part URI. |
protected void |
flushImpl()
Flush the package. |
protected PackagePart |
getPartImpl(PackagePartName partName)
Implement the getPart() method to retrieve a part from its URI in the current package |
protected PackagePart[] |
getPartsImpl()
Retrieves the parts from this package. |
ZipEntrySource |
getZipArchive()
Get the zip archive |
protected void |
removePartImpl(PackagePartName partName)
Delete a part from the package |
protected void |
revertImpl()
Close the package without saving the document. |
void |
saveImpl(java.io.OutputStream outputStream)
Save this package into the specified stream |
Methods inherited from class org.apache.poi.openxml4j.opc.Package |
---|
create, create, create, open, open, open, openOrCreate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipPackage()
Method Detail |
---|
protected PackagePart[] getPartsImpl() throws InvalidFormatException
getPartsImpl
in class OPCPackage
InvalidFormatException
- Throws if the package is not valid.protected PackagePart createPartImpl(PackagePartName partName, java.lang.String contentType, boolean loadRelationships)
createPartImpl
in class OPCPackage
contentType
- The part content type.partName
- URI of the part to create.
protected void removePartImpl(PackagePartName partName)
removePartImpl
in class OPCPackage
partName
- The URI of the part to delete.
java.lang.IllegalArgumentException
- Throws if the part URI is nulll or invalid.protected void flushImpl()
flushImpl
in class OPCPackage
protected void closeImpl() throws java.io.IOException
closeImpl
in class OPCPackage
java.io.IOException
OPCPackage.close()
protected void revertImpl()
revertImpl
in class OPCPackage
protected PackagePart getPartImpl(PackagePartName partName)
getPartImpl
in class OPCPackage
partName
- The URI of the part to retrieve.
OPCPackage.getPart(PackageRelationship)
public void saveImpl(java.io.OutputStream outputStream)
saveImpl
in class OPCPackage
outputStream
- The stream use to save this package.OPCPackage.save(OutputStream)
public ZipEntrySource getZipArchive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |