Class XMLProcessor
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor
-
- org.pentaho.reporting.engine.classic.core.modules.output.xml.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
-
-
Field Summary
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.layout.output.AbstractReportProcessor
COMMIT_RATE, MAX_EVENTS_PER_RUN, MIN_ROWS_PER_EVENT
-
-
Constructor Summary
Constructors Constructor Description XMLProcessor(MasterReport report)
Deprecated.Creates a new XMLProcessor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected OutputFunction
createLayoutManager()
Deprecated.Writer
getWriter()
Deprecated.Returns the writer, which will receive the generated output.protected static boolean
isStrictErrorHandling(org.pentaho.reporting.libraries.base.config.Configuration config)
Deprecated.Checks whether report processing should be aborted when an exception occurs.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, calculatePageCount, cancel, checkInterrupted, close, createProcessingContext, fireProcessingFinished, fireProcessingStarted, fireStateUpdate, getConfiguration, getLogicalPageCount, getLogicalPageState, getOutputProcessor, getOutputProcessorMetaData, getPhysicalPageCount, getPhysicalPageState, getProcessStateHandle, getReport, isFullStreamingProcessor, isHandleInterruptedState, isPaginated, isQueryLimitReached, paginate, prepareReportProcessing, processPage, processPrepareLevels, processReport, removeReportProgressListener, setFullStreamingProcessor, setHandleInterruptedState, setQueryLimitReached
-
-
-
-
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.
-
createLayoutManager
protected OutputFunction createLayoutManager()
Deprecated.- Specified by:
createLayoutManager
in classAbstractReportProcessor
-
-