public class FlatOpcXmlImporter extends Object
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,String> |
handled
This HashMap is intended to prevent loops.
|
Constructor and Description |
---|
FlatOpcXmlImporter(InputStream is) |
FlatOpcXmlImporter(Package flatOpcXml) |
Modifier and Type | Method and Description |
---|---|
OpcPackage |
get() |
static Part |
getRawPart(ContentTypeManager ctm,
Part pkgPart,
Relationship rel)
Get a Part (except a relationships part), but not its relationships part
or related parts.
|
Part |
getRawPart(ContentTypeManager ctm,
String resolvedPartUri,
Relationship rel) |
RelationshipsPart |
getRelationshipsPart(Part part)
Get the Relationships Part (if there is one) for a given Part.
|
static void |
main(String[] args) |
static RelationshipsPart |
populateRelationshipsPart(RelationshipsPart rp,
Element el) |
public FlatOpcXmlImporter(InputStream is) throws JAXBException
JAXBException
public FlatOpcXmlImporter(Package flatOpcXml)
public OpcPackage get() throws Docx4JException
Docx4JException
public static RelationshipsPart populateRelationshipsPart(RelationshipsPart rp, Element el) throws InvalidFormatException, JAXBException
InvalidFormatException
JAXBException
public RelationshipsPart getRelationshipsPart(Part part) throws Docx4JException, InvalidFormatException
zf
- part
- InvalidFormatException
Docx4JException
public Part getRawPart(ContentTypeManager ctm, String resolvedPartUri, Relationship rel) throws Docx4JException
Docx4JException
public static Part getRawPart(ContentTypeManager ctm, Part pkgPart, Relationship rel) throws Docx4JException
zf
- resolvedPartUri
- URISyntaxException
InvalidFormatException
Docx4JException
get a Part and all its related parts, and add all to a package, use
getPart.
Copyright © 2007-2019. All Rights Reserved.