public interface IDocumentFactory
Modifier and Type | Method and Description |
---|---|
ITemplateDocument |
open(java.io.InputStream input,
java.lang.String extension,
java.io.OutputStream output)
Opens a document from the specified stream.
|
ITemplateDocument |
open(java.lang.String path)
Templater will recognize the appropriate document format from the file extension.
|
ITemplateDocument open(java.lang.String path)
path
- path to template document file.
This file will be overwritten with the processed document.ITemplateDocument open(java.io.InputStream input, java.lang.String extension, java.io.OutputStream output)
input
- InputStream
containing the template documentextension
- type of document in input streamoutput
- OutputStream
will be used to output the processed document