Class RtfImporter
java.lang.Object
com.nomagic.reportwizard.tools.importer.template.AbstractImporter
com.nomagic.reportwizard.tools.importer.template.RtfImporter
- All Implemented Interfaces:
IImporter
Imports Rtf content at runtime.
- Since:
- Jan 22, 2009
-
Field Summary
Fields inherited from class com.nomagic.reportwizard.tools.importer.template.AbstractImporter
log, reader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetDocumentBody(File file) Get the HTML Body.protected StringgetDocumentSection(File file, String section) Get a Section in an Html document.postFormat(StringWriter writer) Apply necessary document dependent formatting.Methods inherited from class com.nomagic.reportwizard.tools.importer.template.AbstractImporter
getReader
-
Constructor Details
-
RtfImporter
the constructor.- Parameters:
templateFileName- the template filesection- the section
-
-
Method Details
-
postFormat
Description copied from class:AbstractImporterApply necessary document dependent formatting.- Specified by:
postFormatin interfaceIImporter- Overrides:
postFormatin classAbstractImporter- Parameters:
writer- the writer to post format- Returns:
- the final output.
-
getDocumentBody
Description copied from class:AbstractImporterGet the HTML Body.- Specified by:
getDocumentBodyin classAbstractImporter- Parameters:
file- holding the document- Returns:
- the Text
- Throws:
IOException- if reading the file failed
-
getDocumentSection
Description copied from class:AbstractImporterGet a Section in an Html document.- Overrides:
getDocumentSectionin classAbstractImporter- Parameters:
file- holding the document.section- the section name- Returns:
- the section text
- Throws:
IOException- if reading the section failed
-