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 |
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
Docx4JException
public ZipPartStore(InputStream is) throws Docx4JException
Docx4JException
public void setSourcePartStore(PartStore partStore)
setSourcePartStore
in interface PartStore
public boolean partExists(String partName)
public InputStream loadPart(String partName) throws Docx4JException
PartStore
loadPart
in interface PartStore
Docx4JException
public long getPartSize(String partName) throws Docx4JException
PartStore
getPartSize
in interface PartStore
Docx4JException
public ZipPartStore.ByteArray getByteArray(String partName) throws Docx4JException
partName
- Docx4JException
public void setOutputStream(OutputStream os)
setOutputStream
in interface PartStore
zipOutputStream
- the zipOutputStream to setpublic void saveContentTypes(ContentTypeManager ctm) throws Docx4JException
saveContentTypes
in interface PartStore
Docx4JException
public void saveJaxbXmlPart(JaxbXmlPart part) throws Docx4JException
saveJaxbXmlPart
in interface PartStore
Docx4JException
public void saveCustomXmlDataStoragePart(CustomXmlDataStoragePart part) throws Docx4JException
saveCustomXmlDataStoragePart
in interface PartStore
Docx4JException
public void saveXmlPart(XmlPart part) throws Docx4JException
saveXmlPart
in interface PartStore
Docx4JException
public void saveBinaryPart(Part part) throws Docx4JException
saveBinaryPart
in interface PartStore
Docx4JException
public void finishSave() throws Docx4JException
PartStore
finishSave
in interface PartStore
Docx4JException
Copyright © 2007-2019. All Rights Reserved.