public abstract class JaxbXmlPartAltChunkHost<E> extends JaxbXmlPartXPathAware<E> implements AltChunkInterface
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
binder
jaxbElement, jc
contentType, partName, relationships
Constructor and Description |
---|
JaxbXmlPartAltChunkHost(PartName partName) |
Modifier and Type | Method and Description |
---|---|
AlternativeFormatInputPart |
addAltChunk(AltChunkType type,
byte[] bytes)
Add content from byte array of type AltChunkType, in a way that leaves it up to downstream application (eg Word)
to convert the content to docx content.
|
AlternativeFormatInputPart |
addAltChunk(AltChunkType type,
byte[] bytes,
ContentAccessor attachmentPoint)
Add content from byte array of type AltChunkType, in a way that leaves it up to downstream application (eg Word)
to convert the content to docx content.
|
AlternativeFormatInputPart |
addAltChunk(AltChunkType type,
InputStream is)
Add content from InputStream of type AltChunkType, in a way that leaves it up to downstream application (eg Word)
to convert the content to docx content.
|
AlternativeFormatInputPart |
addAltChunk(AltChunkType type,
InputStream is,
ContentAccessor attachmentPoint)
Add content from InputStream of type AltChunkType, in a way that leaves it up to downstream application (eg Word)
to convert the content to docx content.
|
WordprocessingMLPackage |
convertAltChunks()
To convert an altChunk of type XHTML, this method requires docx4j-XHTMLImport.jar (LGPL) and its dependencies.
|
createBinderAndJaxbElement, getBinder, getJAXBAssociationsForXPath, getJAXBAssociationsForXPath, getJAXBNodesViaXPath, getJAXBNodesViaXPath, setJaxbElement, unmarshal, unmarshal
getContents, getJAXBContext, getJaxbElement, getMceIgnorable, getXML, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, setContents, setJAXBContext, setJaxbElement, setMceIgnorable, transform, variableReplace
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersion
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
public JaxbXmlPartAltChunkHost(PartName partName) throws InvalidFormatException
InvalidFormatException
public AlternativeFormatInputPart addAltChunk(AltChunkType type, byte[] bytes) throws Docx4JException
AltChunkInterface
addAltChunk
in interface AltChunkInterface
Docx4JException
public AlternativeFormatInputPart addAltChunk(AltChunkType type, InputStream is) throws Docx4JException
AltChunkInterface
addAltChunk
in interface AltChunkInterface
Docx4JException
public AlternativeFormatInputPart addAltChunk(AltChunkType type, byte[] bytes, ContentAccessor attachmentPoint) throws Docx4JException
AltChunkInterface
addAltChunk
in interface AltChunkInterface
Docx4JException
public AlternativeFormatInputPart addAltChunk(AltChunkType type, InputStream is, ContentAccessor attachmentPoint) throws Docx4JException
AltChunkInterface
addAltChunk
in interface AltChunkInterface
Docx4JException
public WordprocessingMLPackage convertAltChunks() throws Docx4JException
convertAltChunks
in interface AltChunkInterface
Docx4JException
Copyright © 2007-2018. All Rights Reserved.