Class TxtImporter
java.lang.Object
com.nomagic.reportwizard.tools.importer.template.AbstractImporter
com.nomagic.reportwizard.tools.importer.template.TxtImporter
- All Implemented Interfaces:
IImporter
Imports Text 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.postFormat(StringWriter writer) Apply necessary document dependent formatting.Methods inherited from class com.nomagic.reportwizard.tools.importer.template.AbstractImporter
getDocumentSection, getReader
-
Constructor Details
-
TxtImporter
the constructor.- Parameters:
templateFileName- the template filesection- the section
-
-
Method Details
-
postFormat
Apply 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
-