Class TemplateWriter

  • public class TemplateWriter
    extends ObjectWriter
    The template writer writes a single template definition to the xml-definition stream. This writer requires report builder hints to be present for all templates.
    Thomas Morgner
    • Constructor Detail

      • TemplateWriter

        public TemplateWriter​(ReportWriterContext reportWriter,
                              org.pentaho.reporting.libraries.xmlns.writer.XmlWriter indentLevel,
                              TemplateDescription template,
                              TemplateDescription parent)
        Creates a new template writer.
        reportWriter - the report writer that is used to coordinate the writing.
        indentLevel - the current indention level.
        template - the template that should be written.
        parent - the parent of the template.
    • Method Detail

      • write

        public void write()
                   throws IOException,
        Writes the report definition portion. Every DefinitionWriter handles one or more elements of the JFreeReport object tree, DefinitionWriter traverse the object tree and write the known objects or forward objects to other definition writers.
        write in class ObjectWriter
        IOException - if there is an I/O problem.
        ReportWriterException - if the report serialisation failed.