Package org.docx4j.samples
Class PartsList
java.lang.Object
org.docx4j.samples.AbstractSample
org.docx4j.samples.PartsList
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis HashMap is intended to prevent loops.private static org.slf4j.LoggerFields inherited from class org.docx4j.samples.AbstractSample
inputfilepath, outputfilepath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandlePkg(OpcPackage opcPackage, boolean printContentTypes) static voidstatic voidIt is often useful to see this [Content_Types].xmlstatic voidprintInfo(String parentName, Relationship r, Part p, StringBuilder sb, String indent) static voidtraverseRelationships(OpcPackage wordMLPackage, RelationshipsPart rp, StringBuilder sb, String indent) Methods inherited from class org.docx4j.samples.AbstractSample
getInputFilePath, getOutputFilePath
-
Field Details
-
log
private static org.slf4j.Logger log -
handled
This HashMap is intended to prevent loops.
-
-
Constructor Details
-
PartsList
public PartsList()
-
-
Method Details
-
main
- Parameters:
args-- Throws:
Exception
-
handlePkg
-
printContentTypes
It is often useful to see this [Content_Types].xml -
printInfo
public static void printInfo(String parentName, Relationship r, Part p, StringBuilder sb, String indent) -
traverseRelationships
public static void traverseRelationships(OpcPackage wordMLPackage, RelationshipsPart rp, StringBuilder sb, String indent)
-