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 Type
    Method
    Description
    void
    stamp(T template, Object context, OutputStream outputStream)
    Stamps the template with the context and writes the result to the outputStream.
  • Method Details

    • stamp

      void stamp(T template, Object context, OutputStream outputStream) throws OfficeStamperException
      Stamps the template with the context and writes the result to the outputStream.
      Parameters:
      template - template to stamp
      context - context to use for stamping
      outputStream - output stream to write the result to
      Throws:
      OfficeStamperException - if the stamping fails