org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer
Class DataDefinitionFileWriter
java.lang.Object
org.pentaho.reporting.engine.classic.core.modules.parser.bundle.writer.DataDefinitionFileWriter
- All Implemented Interfaces:
- BundleWriterHandler
public class DataDefinitionFileWriter
- extends Object
- implements BundleWriterHandler
Todo: Document Me
- Author:
- Thomas Morgner
DataDefinitionFileWriter
public DataDefinitionFileWriter()
getProcessingOrder
public int getProcessingOrder()
- Returns a relatively high processing order indicating this BundleWriterHandler should be one of the last processed
- Specified by:
getProcessingOrder
in interface BundleWriterHandler
- Returns:
- the relative processing order for this BundleWriterHandler
writeReport
public String writeReport(org.pentaho.reporting.libraries.docbundle.WriteableDocumentBundle bundle,
BundleWriterState state)
throws IOException,
BundleWriterException
- Description copied from interface:
BundleWriterHandler
- Writes a certain aspect 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:
writeReport
in interface BundleWriterHandler
- Parameters:
bundle
- the bundle where to write to.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 occured
BundleWriterException
- if a bundle-management error occured.
writeDataFactory
public static String writeDataFactory(org.pentaho.reporting.libraries.docbundle.WriteableDocumentBundle bundle,
BundleWriterState state,
DataFactory df)
throws IOException,
BundleWriterException
- Throws:
IOException
BundleWriterException