com.jrefinery.report.targets.table.rtf
Class RTFProcessor

java.lang.Object
  extended bycom.jrefinery.report.targets.table.TableProcessor
      extended bycom.jrefinery.report.targets.table.rtf.RTFProcessor

public class RTFProcessor
extends TableProcessor

The ExcelProcessor coordinates the output process for generating RTF files using the iText library.

Author:
Thomas Morgner

Constructor Summary
RTFProcessor(JFreeReport report)
          Creates a new RTF processor for the Report.
 
Method Summary
 TableProducer createProducer(boolean dummy)
          Creates the RTFProducer.
 java.io.OutputStream getOutputStream()
          Gets the output stream, that should be used to write the generated content.
protected  java.lang.String getReportConfigurationPrefix()
          Gets the report configuration prefix for that processor.
 void setOutputStream(java.io.OutputStream outputStream)
          Sets the output stream, that should be used to write the generated content.
 
Methods inherited from class com.jrefinery.report.targets.table.TableProcessor
configure, getProperties, getProperty, getProperty, getPropertyNames, getReport, isStrictLayout, processReport, setProperty, setStrictLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTFProcessor

public RTFProcessor(JFreeReport report)
             throws ReportProcessingException,
                    FunctionInitializeException
Creates a new RTF processor for the Report.

Parameters:
report - the report that should be written as RTF.
Throws:
ReportProcessingException - if the report initialization failed
FunctionInitializeException - if the table writer initialization failed.
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream()
Gets the output stream, that should be used to write the generated content.

Returns:
the output stream.

setOutputStream

public void setOutputStream(java.io.OutputStream outputStream)
Sets the output stream, that should be used to write the generated content.

Parameters:
outputStream - the output stream.

createProducer

public TableProducer createProducer(boolean dummy)
Creates the RTFProducer. The TableProducer is responsible to create the table.

Specified by:
createProducer in class TableProcessor
Parameters:
dummy - true, if dummy mode is enabled, and no writing should be done, false otherwise.
Returns:
the created table producer, never null.

getReportConfigurationPrefix

protected java.lang.String getReportConfigurationPrefix()
Gets the report configuration prefix for that processor. This prefix defines how to map the property names into the global report configuration.

Specified by:
getReportConfigurationPrefix in class TableProcessor
Returns:
the report configuration prefix.