Logo Search packages:      
Sourcecode: jodreports version File versions  Download package

void net::sf::jooreports::templates::AbstractDocumentTemplate::createDocument ( Object  model,
OutputStream  output 
) throws IOException, DocumentTemplateException [inline, inherited]

Merge the data model into this template and create the output document.

Parameters:
model
output
Exceptions:
IOException
DocumentTemplateException

Implements net::sf::jooreports::templates::DocumentTemplate.

Definition at line 75 of file AbstractDocumentTemplate.java.

                                                                                                                {
      if (preProcessedTemplate == null) {
            preProcess();
      }
      OpenDocumentArchive outputArchive = preProcessedTemplate.createCopy();
      TemplateAndModelMerger templateAndModelMerger = new TemplateAndModelMerger(freemarkerConfiguration, xmlEntries, 
                  openDocumentSettings);
      templateAndModelMerger.process(outputArchive, model);
      
      OpenDocumentIO.writeZip(outputArchive, output);
    }

Generated by  Doxygen 1.6.0   Back to index