Save This Page
Home » pentaho-reporting-engine-classic-0.8.10 » org.jfree.report.modules.output » xml » [javadoc | source]
org.jfree.report.modules.output.xml
public class: XMLProcessor [javadoc | source]
java.lang.Object
   org.jfree.report.modules.output.xml.XMLProcessor
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.

Constructor:
 public XMLProcessor(JFreeReport report) throws ReportProcessingException 
    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 from org.jfree.report.modules.output.xml.XMLProcessor Summary:
getReport,   getWriter,   isStrictErrorHandling,   processReport,   setWriter
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.report.modules.output.xml.XMLProcessor Detail:
 protected JFreeReport getReport() 
    Returns the XMLProcessors local report instance. This instance has the XMLWriter attached and should be used outside of this class.
 public Writer getWriter() 
    Returns the writer, which will receive the generated output.
 protected static boolean isStrictErrorHandling(Configuration config) 
    Checks whether report processing should be aborted when an exception occurs.
 public  void processReport() throws ReportProcessingException 
    Processes the report. The generated output is written using the defined writer, the report is repaginated before the final writing.
 public  void setWriter(Writer writer) 
    Sets the writer, which will receive the generated output. The writer should have the proper encoding set.