Module pro.verron.officestamper
Package pro.verron.officestamper.api
Interface OfficeStamper<T extends org.docx4j.openpackaging.packages.OpcPackage>
- Type Parameters:
T
- The type of the template that can be stamped.
- All Known Implementing Classes:
ExcelStamper
,PowerpointStamper
public interface OfficeStamper<T extends org.docx4j.openpackaging.packages.OpcPackage>
This is an interface that defines the contract for stamping
templates with context and writing the result to an
OutputStream
.- Since:
- 1.6.4
- Version:
- ${version}
- Author:
- Joseph Verron
-
Method Summary
Modifier and TypeMethodDescriptionvoid
stamp
(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:
OfficeStamperException
- if the stamping fails
-