Constructing an instance of the Context class requires an OutputStream (from the java.io package) and a PageFormat (from the java.awt.print package).
Your application only has to create an instance of the Context class, which the ReportWriter classes then use to generate the reports. Your application should never directly call any of the methods in either Context class. The PCLContext and PDFContext methods are meant to be used internally by the ReportWriter classes.
The following examples show how you can use the Context classes with other ReportWriter classes to generate reports: