Class XMLProcessor

  • All Implemented Interfaces:
    ReportProcessor

    public class XMLProcessor
    extends AbstractReportProcessor
    Deprecated.
    The whole basic XML output is deprecated as it cannot handle inline subreports.
    The XMLProcessor coordinates the report processing for the XML-Output. This class is responsible to initialize and maintain the XMLWriter, which performs the output process.

    The XMLProcessor is not intended to produce complex output, it is an educational example. If you want valid xml data enriched with layouting information, then have a look at the HTML-OutputTarget, this target is also able to write XHTMl code.

    Author:
    Thomas Morgner
    • Constructor Detail

      • XMLProcessor

        public XMLProcessor​(MasterReport report)
                     throws ReportProcessingException
        Deprecated.
        Creates a new XMLProcessor. The processor will output the report as simple xml stream.
        Parameters:
        report - the report that should be processed
        Throws:
        ReportProcessingException - if the report could not be initialized
    • Method Detail

      • getWriter

        public Writer getWriter()
        Deprecated.
        Returns the writer, which will receive the generated output.
        Returns:
        the writer
      • setWriter

        public void setWriter​(Writer writer)
        Deprecated.
        Sets the writer, which will receive the generated output. The writer should have the proper encoding set.
        Parameters:
        writer - that should receive the generated output.
      • isStrictErrorHandling

        protected static boolean isStrictErrorHandling​(org.pentaho.reporting.libraries.base.config.Configuration config)
        Deprecated.
        Checks whether report processing should be aborted when an exception occurs.
        Parameters:
        config - the configuration.
        Returns:
        if strict error handling is enabled.