ReportWriter classes
The com.ibm.as400.util.reportwriter package provides classes that enable you to easily access and format data from an XML source file or data produced by servlets or JavaServer Pages.
The reportwriter package is a convenient way to name three different but related packages:
- com.ibm.as400.util.reportwriter.pclwriter
- com.ibm.as400.util.reportwriter.pdfwriter
- com.ibm.as400.util.reportwriter.processor
These packages include a variety of classes that allow
you to format XML data streams and generate reports in those formats.
Make sure you have the necessary JAR files in your CLASSPATH, including
an XML parser and an XSLT processor. For more information, see the
following pages:
Context classes (in the pclwriter and pdfwriter packages) define methods that the ReportProcessor classes need to render XML and JSP data in the chosen format:
- Use PCLContext in combination with a ReportWriter class to generate a report in the Hewlett Packard Printer Control Language (PCL) format.
- Use PDFContext in combination with a ReportWriter class to generate a report in the Adobe Portable Document Format (PDF).
ReportProcessor classes (in the processor package) enable you to generate formatted reports from information your application gathers from Java servlets and JavaServer Pages (JSPs).
- Use the JSPReportProcessor class to retrieve data from servlets and JSP pages to produce reports in the available formats (contexts).