|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.util.reportwriter.processor.ReportProcessor | +--com.ibm.as400.util.reportwriter.processor.XSLReportProcessor
The XSLReportProcessor class is used to create a document/report by formatting XSL source data with an XSL stylesheet (consisting of formatting objects conforming to the Extensible Stylesheet Language Specification). A document may also be created from an XML file with imbedded XSL formatting objects. Both the output context and input data source must be specified before any pages of the report can be generated.
Fields inherited from class com.ibm.as400.util.reportwriter.processor.ReportProcessor |
context_ |
Constructor Summary | |
XSLReportProcessor()
Constructs an XSLReportProcessor object. |
|
XSLReportProcessor(com.ibm.xsl.composer.framework.Context context)
Constructs an XSLReportProcessor object. |
Method Summary | |
void |
processReport()
Processes the report using the input source and context previously specified. |
void |
setTemplate(org.w3c.dom.Document xslSource)
Sets the source of the XSL stylesheet content as a Document. |
void |
setTemplate(java.io.InputStream xslSource)
Sets the formatting template as the specified byte-stream reader. |
void |
setTemplate(java.io.Reader xslSource)
Sets the formatting template as the specified character-stream reader. |
void |
setTemplate(java.lang.String xslSource)
Sets the source of the XSL stylesheet content as a String URI. |
void |
setXMLDataSource(org.w3c.dom.Document xmlSource)
Sets the source as an XML document. |
void |
setXMLDataSource(java.io.InputStream xmlSource)
Sets the source as an XML byte-stream reader. |
void |
setXMLDataSource(java.io.Reader xmlSource)
Sets the source as an XML character-stream reader. |
void |
setXMLDataSource(java.lang.String xmlSource)
Sets the source as an XML document from a URI. |
void |
setXSLFOSource(java.io.InputStream xslfoSource)
Sets the source as an XSL FO byte-stream reader. |
void |
setXSLFOSource(java.io.Reader xslfoSource)
Sets the source as an XSL FO character-stream reader. |
void |
setXSLFOSource(java.lang.String xslfoSource)
Sets the source as an XSL FO document from a URI. |
Methods inherited from class com.ibm.as400.util.reportwriter.processor.ReportProcessor |
setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSLReportProcessor()
public XSLReportProcessor(com.ibm.xsl.composer.framework.Context context) throws java.lang.NullPointerException
context
- The context to use for creating the report pages.java.lang.NullPointerException
- If the context is null.Method Detail |
public void processReport() throws java.io.IOException, org.xml.sax.SAXException, java.lang.NullPointerException, org.w3c.dom.DOMException
processReport
in class ReportProcessor
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.public void setXMLDataSource(org.w3c.dom.Document xmlSource) throws java.lang.NullPointerException
xmlSource
- An XML source tree document. A call to setTemplate must also
be done to set the XSL data source.java.lang.NullPointerException
- If the XML source is null.public void setXMLDataSource(java.lang.String xmlSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException, java.io.FileNotFoundException
xmlSource
- An XML URI document. A call to setTemplate must also
be done to set the XSL data source.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XML source is null.java.io.FileNotFoundException
- If the XML source file is not found.public void setXMLDataSource(java.io.Reader xmlSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException
xmlSource
- A reader for XML data. A call to setTemplate must also
be done to set the XSL data source.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XML source is null.public void setXMLDataSource(java.io.InputStream xmlSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException
xmlSource
- An XML byte-stream reader. A call to setTemplate must also
be done to set the XSL data source.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XML source is null.public void setXSLFOSource(java.lang.String xslfoSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException, java.io.FileNotFoundException
xslfoSource
- An XSL FO URI document. The input source should contain
XML data with imbedded XSL formatting object templates.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XSL FO source is null.java.io.FileNotFoundException
- If the XSL FO source file is not found.public void setXSLFOSource(java.io.Reader xslfoSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException
xslfoSource
- A reader for XSL FO data.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XSL FO source is null.public void setXSLFOSource(java.io.InputStream xslfoSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException
xslfoSource
- A reader for XSL FO data.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XSL FO source is null.public void setTemplate(org.w3c.dom.Document xslSource) throws java.lang.NullPointerException
xslSource
- An XSL source document.java.lang.NullPointerException
- Thrown if the XSL source is null.public void setTemplate(java.lang.String xslSource) throws org.xml.sax.SAXException, java.io.IOException, java.lang.NullPointerException, java.io.FileNotFoundException
xslSource
- An XSL URI document.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XSL source is null.java.io.FileNotFoundException
- If the XSL source file is not found.public void setTemplate(java.io.Reader xslSource) throws org.xml.sax.SAXException, java.io.IOException, java.lang.NullPointerException
xslSource
- A reader for an XSL stylesheet.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XSL source is null.public void setTemplate(java.io.InputStream xslSource) throws org.xml.sax.SAXException, java.io.IOException, java.lang.NullPointerException
xslSource
- A reader for an XSL stylesheet.java.io.IOException
- If an error occurs while retrieving the data.org.xml.sax.SAXException
- If an error occurs while parsing/processing the data.java.lang.NullPointerException
- If the XSL source is null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |