com.ibm.as400.util.reportwriter.processor
Class ReportProcessor

java.lang.Object
  |
  +--com.ibm.as400.util.reportwriter.processor.ReportProcessor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JSPReportProcessor, XSLReportProcessor

public abstract class ReportProcessor
extends java.lang.Object
implements java.io.Serializable

The ReportProcessor class is the superclass for all ReportProcessors. ReportProcessor objects create and output documents/reports formatted using XSL formatting objects. For more information on XSL formatting objects, see the Extensible Stylesheet Language Specification Version 1 at http://www.w3.org/TR/xsl/. Implementations of the ReportProcessor class use Context objects to output the document/report in a specific file format or printer data stream. Two contexts available in this package, PDFContext and PCLContext, create a document in a PDF format or in an HP PCL format that can be sent directly to a printer. Context objects can be specified either during the construction of an implementation of a ReportProcessor class or by using the setContext method.

See Also:
Serialized Form

Field Summary
protected  com.ibm.xsl.composer.framework.Context context_
          The output context to use
 
Method Summary
abstract  void processReport()
          Starts a report processor job.
 void setContext(com.ibm.xsl.composer.framework.Context context)
          Sets the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context_

protected com.ibm.xsl.composer.framework.Context context_
The output context to use
Method Detail

processReport

public abstract void processReport()
                            throws java.io.IOException,
                                   org.xml.sax.SAXException,
                                   java.lang.NullPointerException,
                                   org.w3c.dom.DOMException
Starts a report processor job.
Throws:
java.io.IOException - If an error occurs while retrieving the input data.
org.xml.sax.SAXException - If an error occurs while parsing/processing the data.
java.lang.NullPointerException - If the data source or context is null.
org.w3c.dom.DOMException - If an error occurs while parsing/processing the formatting object tree.

setContext

public void setContext(com.ibm.xsl.composer.framework.Context context)
                throws java.lang.NullPointerException
Sets the context. Before calling this method, an instance of either PDFContext or PCLContext should be created specifing an OutputStream and PageFormat.
Throws:
java.lang.NullPointerException - If the context is null.