Package org.docx4j.samples
Class PartLoadFromFileSystem
java.lang.Object
org.docx4j.samples.PartLoadFromFileSystem
Import foreign parts, relying on docx4j to work out which part
to create.
If you know which part you want, it is simpler / more comprehensible
to unmarshall an input stream, then set the content of a new part
to that.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachForeignPart(WordprocessingMLPackage wordMLPackage, Base attachmentPoint, ContentTypeManager foreignCtm, String resolvedPartUri, InputStream is) static void
-
Constructor Details
-
PartLoadFromFileSystem
public PartLoadFromFileSystem()
-
-
Method Details
-
main
- Throws:
Exception
-
attachForeignPart
public static void attachForeignPart(WordprocessingMLPackage wordMLPackage, Base attachmentPoint, ContentTypeManager foreignCtm, String resolvedPartUri, InputStream is) throws Exception - Throws:
Exception
-