Class KettleDataFactoryBundleWriteHandler
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.extensions.datasources.kettle.writer.KettleDataFactoryBundleWriteHandler
-
- All Implemented Interfaces:
org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleDataFactoryWriterHandler
public class KettleDataFactoryBundleWriteHandler extends Object implements org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleDataFactoryWriterHandler
Creation-Date: Jan 19, 2007, 4:44:05 PM- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description KettleDataFactoryBundleWriteHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransformationProducerWriteHandler
lookupWriteHandler(KettleTransformationProducer prod)
String
writeDataFactory(org.pentaho.reporting.libraries.docbundle.WriteableDocumentBundle bundle, org.pentaho.reporting.engine.classic.core.DataFactory dataFactory, org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterState state)
Writes a data-source into a own file.
-
-
-
Method Detail
-
writeDataFactory
public String writeDataFactory(org.pentaho.reporting.libraries.docbundle.WriteableDocumentBundle bundle, org.pentaho.reporting.engine.classic.core.DataFactory dataFactory, org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterState state) throws IOException, org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
Writes a data-source into a own file. The name of file inside the bundle is returned as string. The file name returned is always absolute and can be made relative by using the IOUtils of LibBase. If the writer-handler did not generate a file on its own, it should return null.- Specified by:
writeDataFactory
in interfaceorg.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleDataFactoryWriterHandler
- Parameters:
bundle
- the bundle where to write to.dataFactory
- the data factory that should be written.state
- the writer state to hold the current processing information.- Returns:
- the name of the newly generated file or null if no file was created.
- Throws:
IOException
- if any error occuredorg.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
- if a bundle-management error occured.
-
lookupWriteHandler
protected TransformationProducerWriteHandler lookupWriteHandler(KettleTransformationProducer prod) throws org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
- Throws:
org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.BundleWriterException
-
-