org.pentaho.reporting.engine.classic.core.modules.parser.data.staticdata.writer
Class StaticDataFactoryWriterHandler

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.data.staticdata.writer.StaticDataFactoryWriterHandler
All Implemented Interfaces:
BundleDataFactoryWriterHandler

public class StaticDataFactoryWriterHandler
extends Object
implements BundleDataFactoryWriterHandler

Creation-Date: Jan 18, 2007, 6:41:57 PM

Author:
Thomas Morgner

Constructor Summary
StaticDataFactoryWriterHandler()
           
 
Method Summary
 String writeDataFactory(org.pentaho.reporting.libraries.docbundle.WriteableDocumentBundle bundle, DataFactory dataFactory, BundleWriterState state)
          Writes a data-source into a own file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticDataFactoryWriterHandler

public StaticDataFactoryWriterHandler()
Method Detail

writeDataFactory

public String writeDataFactory(org.pentaho.reporting.libraries.docbundle.WriteableDocumentBundle bundle,
                               DataFactory dataFactory,
                               BundleWriterState state)
                        throws IOException,
                               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 interface BundleDataFactoryWriterHandler
Parameters:
bundle - the bundle where to write to.
state - the writer state to hold the current processing information.
dataFactory - the data factory that should be written.
Returns:
the name of the newly generated file or null if no file was created.
Throws:
IOException - if any error occured
BundleWriterException - if a bundle-management error occured.