|
|||||||||
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.as400.util.reportwriter.pdfwriter.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.as400.util.reportwriter.pdfwriter.Context context) throws java.lang.NullPointerException
context
- The context to use for creating the report pages.Method Detail |
public void processReport() throws java.io.IOException, org.xml.sax.SAXException, java.lang.NullPointerException, org.w3c.dom.DOMException
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.public void setXMLDataSource(java.lang.String xmlSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException
xmlSource
- An XML URI document. A call to setTemplate must also
be done to set the XSL data source.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.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.public void setXSLFOSource(java.lang.String xslfoSource) throws java.io.IOException, java.lang.NullPointerException, org.xml.sax.SAXException
xslfoSource
- An XSL FO URI document. The input source should contain
XML data with imbedded XSL formatting object templates.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.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.public void setTemplate(org.w3c.dom.Document xslSource) throws java.lang.NullPointerException
xslSource
- An XSL source document.public void setTemplate(java.lang.String xslSource) throws org.xml.sax.SAXException, java.io.IOException, java.lang.NullPointerException
xslSource
- An XSL URI document.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.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |