Package pro.verron.docxstamper
Interface OpcStamper<T extends org.docx4j.openpackaging.packages.OpcPackage>
- Type Parameters:
T- The type of the template that can be stamped.
- All Known Implementing Classes:
DocxStamper
public interface OpcStamper<T extends org.docx4j.openpackaging.packages.OpcPackage>
OpcStamper is an interface that defines the contract for stamping templates with context and writing the result to an OutputStream.
- Version:
- 1.6.6
- Author:
- Joseph Verron
-
Method Summary
Modifier and TypeMethodDescriptionvoidstamp(T template, Object context, OutputStream outputStream) Stamps the template with the context and writes the result to the outputStream.
-
Method Details
-
stamp
Stamps the template with the context and writes the result to the outputStream.- Parameters:
template- template to stampcontext- context to use for stampingoutputStream- output stream to write the result to- Throws:
DocxStamperException- if the stamping fails
-