org.pentaho.reporting.engine.classic.core.modules.output.xml
Class XMLProcessor

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor
      extended by org.pentaho.reporting.engine.classic.core.modules.output.xml.XMLProcessor
All Implemented Interfaces:
ReportProcessor

Deprecated. The whole basic XML output is deprecated as it cannot handle inline subreports.

public class XMLProcessor
extends AbstractReportProcessor

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 Summary
XMLProcessor(MasterReport report)
          Deprecated. Creates a new XMLProcessor.
 
Method Summary
 Writer getWriter()
          Deprecated. Returns the writer, which will receive the generated output.
 void setWriter(Writer writer)
          Deprecated. Sets the writer, which will receive the generated output.
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor
addReportProgressListener, close, getConfiguration, getLogicalPageCount, getOutputProcessor, getPhysicalPageCount, isFullStreamingProcessor, isHandleInterruptedState, isPaginated, paginate, processPage, processReport, removeReportProgressListener, setFullStreamingProcessor, setHandleInterruptedState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.