Class JndiDataSourceProviderWriteHandler

    • Constructor Detail

      • JndiDataSourceProviderWriteHandler

        public JndiDataSourceProviderWriteHandler()
    • Method Detail

      • write

        public void write​(org.pentaho.reporting.libraries.docbundle.WriteableDocumentBundle bundle,
                          org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterState state,
                          org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter,
                          DataSourceProvider dataSourceProvider)
                   throws IOException,
                          org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
        Writes a data-source into a XML-stream.
        Specified by:
        write in interface DataSourceProviderBundleWriteHandler
        Parameters:
        bundle - the document bundle that is produced.
        state - the current writer state.
        xmlWriter - the XML writer that will receive the generated XML data.
        dataSourceProvider - the data factory that should be written.
        Throws:
        IOException - if any error occured
        org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
      • write

        public void write​(org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterContext reportWriter,
                          org.pentaho.reporting.libraries.xmlns.writer.XmlWriter xmlWriter,
                          DataSourceProvider dataFactory)
                   throws IOException,
                          org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException
        Writes a data-source into a XML-stream.
        Specified by:
        write in interface DataSourceProviderWriteHandler
        Parameters:
        reportWriter - the writer context that holds all factories.
        xmlWriter - the XML writer that will receive the generated XML data.
        dataFactory - the data factory that should be written.
        Throws:
        IOException - if any error occured
        org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterException - if the data factory cannot be written.