|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterContext
org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriter
public class ReportWriter
A report writer.
| Constructor Summary | |
|---|---|
ReportWriter(MasterReport reportDefinition,
String encoding)
|
|
ReportWriter(MasterReport report,
String encoding,
org.pentaho.reporting.libraries.base.config.Configuration config)
Creates a new report writer for a report. |
|
| Method Summary | |
|---|---|
void |
addClassFactoryFactory(ClassFactory cf)
Adds a class factory. |
void |
addDataSourceFactory(DataSourceFactory dsf)
Adds a data-source factory. |
void |
addElementFactory(ElementFactory ef)
Adds an element factory. |
void |
addStyleKeyFactory(StyleKeyFactory skf)
Adds a style-key factory. |
void |
addTemplateCollection(TemplateCollection collection)
Adds a template collection. |
static org.pentaho.reporting.libraries.base.config.Configuration |
createDefaultConfiguration(MasterReport report)
Builds a default configuration from a given report definition object. |
ClassFactoryCollector |
getClassFactoryCollector()
Returns the class factory collector. |
org.pentaho.reporting.libraries.base.config.Configuration |
getConfiguration()
Returns the configuration used to write the report. |
DataSourceCollector |
getDataSourceCollector()
Returns the data-source collector. |
ElementFactoryCollector |
getElementFactoryCollector()
Returns the element factory collector. |
String |
getEncoding()
Returns the encoding. |
StyleKeyFactoryCollector |
getStyleKeyFactoryCollector()
Returns the style-key factory collector. |
TemplateCollector |
getTemplateCollector()
Returns the template collector. |
void |
write(Writer w)
Writes a report to a character stream writer. |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.extwriter.ReportWriterContext |
|---|
getReport, hasParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportWriter(MasterReport reportDefinition,
String encoding)
public ReportWriter(MasterReport report,
String encoding,
org.pentaho.reporting.libraries.base.config.Configuration config)
report - the report.encoding - the encoding.config - the write configuration.| Method Detail |
|---|
public static org.pentaho.reporting.libraries.base.config.Configuration createDefaultConfiguration(MasterReport report)
report - the report for which to create the writer configuration.
public String getEncoding()
public void addDataSourceFactory(DataSourceFactory dsf)
dsf - the data-source factory.public DataSourceCollector getDataSourceCollector()
getDataSourceCollector in class ReportWriterContextpublic void addElementFactory(ElementFactory ef)
ef - the element factory.public ElementFactoryCollector getElementFactoryCollector()
getElementFactoryCollector in class ReportWriterContextpublic void addClassFactoryFactory(ClassFactory cf)
cf - the class factory.public ClassFactoryCollector getClassFactoryCollector()
getClassFactoryCollector in class ReportWriterContextpublic void addStyleKeyFactory(StyleKeyFactory skf)
skf - the style-key factory.public StyleKeyFactoryCollector getStyleKeyFactoryCollector()
getStyleKeyFactoryCollector in class ReportWriterContextpublic void addTemplateCollection(TemplateCollection collection)
collection - the template collection.public TemplateCollector getTemplateCollector()
getTemplateCollector in class ReportWriterContext
public void write(Writer w)
throws IOException,
ReportWriterException
w - the character stream writer.
IOException - if there is an I/O problem.
ReportWriterException - if there is a problem writing the report.public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||