| Modifier and Type | Class and Description |
|---|---|
static class |
ZipPartStore.ByteArray |
| Constructor and Description |
|---|
ZipPartStore() |
ZipPartStore(File f) |
ZipPartStore(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
finishSave()
Anything necessary to perfect the save operation.
|
ZipPartStore.ByteArray |
getByteArray(String partName)
This method is to facilitate updating the part without
JAXB unmarshalling then marshalling.
|
long |
getPartSize(String partName)
The size of this part in bytes.
|
InputStream |
loadPart(String partName)
Returns null if the part does not exist.
|
boolean |
partExists(String partName) |
void |
rename(PartName oldName,
PartName newName)
Rename a part in the part store.
|
void |
saveBinaryPart(Part part) |
void |
saveContentTypes(ContentTypeManager ctm) |
void |
saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) |
void |
saveJaxbXmlPart(JaxbXmlPart part) |
void |
saveXmlPart(XmlPart part) |
void |
setOutputStream(OutputStream os) |
void |
setSourcePartStore(PartStore partStore)
Set this if its different to the target part store
(ie this object)
|
public ZipPartStore()
public ZipPartStore(File f) throws Docx4JException
Docx4JExceptionpublic ZipPartStore(InputStream is) throws Docx4JException
Docx4JExceptionpublic void setSourcePartStore(PartStore partStore)
setSourcePartStore in interface PartStorepublic boolean partExists(String partName)
public InputStream loadPart(String partName) throws Docx4JException
PartStoreloadPart in interface PartStoreDocx4JExceptionpublic long getPartSize(String partName) throws Docx4JException
PartStoregetPartSize in interface PartStoreDocx4JExceptionpublic ZipPartStore.ByteArray getByteArray(String partName) throws Docx4JException
partName - Docx4JExceptionpublic void rename(PartName oldName, PartName newName)
PartStorepublic void setOutputStream(OutputStream os)
setOutputStream in interface PartStorezipOutputStream - the zipOutputStream to setpublic void saveContentTypes(ContentTypeManager ctm) throws Docx4JException
saveContentTypes in interface PartStoreDocx4JExceptionpublic void saveJaxbXmlPart(JaxbXmlPart part) throws Docx4JException
saveJaxbXmlPart in interface PartStoreDocx4JExceptionpublic void saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) throws Docx4JException
saveCustomXmlDataStoragePart in interface PartStoreDocx4JExceptionpublic void saveXmlPart(XmlPart part) throws Docx4JException
saveXmlPart in interface PartStoreDocx4JExceptionpublic void saveBinaryPart(Part part) throws Docx4JException
saveBinaryPart in interface PartStoreDocx4JExceptionpublic void finishSave()
throws Docx4JException
PartStorefinishSave in interface PartStoreDocx4JExceptionCopyright © 2007-2022. All Rights Reserved.