public final class ZipPackage extends AbstractFRPackage implements java.lang.Cloneable
modified, originalPackagePath, output, packageAccess, partMap, partSummaryManager
构造器和说明 |
---|
ZipPackage() |
ZipPackage(java.io.File file,
PackageAccess access)
通过文件构造一个ZipPackage
|
ZipPackage(java.io.InputStream in,
PackageAccess access)
通过流构造一个ZipPackage
|
限定符和类型 | 方法和说明 |
---|---|
protected AbstractPackagePart |
createPartImpl(PartSummary partSummary)
创建一个package part,用于子类实现
|
protected java.util.Map<java.lang.String,AbstractPackagePart> |
getPartsImpl()
获取包中所有的parts。
|
ZipEntrySource |
getZipArchive() |
protected void |
revertImpl()
关闭时不保存,丢弃所有改动
todo:[cptx]发现保存错误的时候会变成0KB,希望做个回滚,但是只能基于文件不能基于流
|
protected void |
saveImpl(java.io.OutputStream outputStream)
保存文档到指定流中
|
addSummary, clone, close, create, create, createPart, createPart, getParts, getPartsByName, getPartsByName, open, open, open, open, openOrCreate, register, registerClone, registerPart, releaseParts, removePart, removeSummary, revert, save, save
public ZipPackage()
public ZipPackage(java.io.File file, PackageAccess access)
file
- 文件对象access
- 读写权限public ZipPackage(java.io.InputStream in, PackageAccess access) throws java.io.IOException
in
- 流access
- 读写权限java.io.IOException
protected AbstractPackagePart createPartImpl(PartSummary partSummary)
AbstractFRPackage
createPartImpl
在类中 AbstractFRPackage
partSummary
- 摘要protected void revertImpl()
AbstractFRPackage
revertImpl
在类中 AbstractFRPackage
protected void saveImpl(java.io.OutputStream outputStream) throws java.io.IOException
AbstractFRPackage
saveImpl
在类中 AbstractFRPackage
outputStream
- 保存文档的输出流java.io.IOException
protected java.util.Map<java.lang.String,AbstractPackagePart> getPartsImpl() throws InvalidFormatException
AbstractFRPackage
getPartsImpl
在类中 AbstractFRPackage
InvalidFormatException
- 无效格式异常public ZipEntrySource getZipArchive()