@OpenApiAll public class RtfImporter extends AbstractImporter
log, reader
Constructor and Description |
---|
RtfImporter(java.lang.String templateFileName,
java.lang.String section)
the constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDocumentBody(java.io.File file)
Get the HTML Body.
|
protected java.lang.String |
getDocumentSection(java.io.File file,
java.lang.String section)
Get a Section in an Html document.
|
com.nomagic.magicreport.engine.ITool.RetainedString |
postFormat(java.io.StringWriter writer)
Apply necessary document dependent formatting.
|
getReader
public RtfImporter(java.lang.String templateFileName, java.lang.String section)
templateFileName
- the template filesection
- the sectionpublic com.nomagic.magicreport.engine.ITool.RetainedString postFormat(java.io.StringWriter writer)
AbstractImporter
postFormat
in interface IImporter
postFormat
in class AbstractImporter
writer
- the writer to post formatprotected java.lang.String getDocumentBody(java.io.File file) throws java.io.IOException
AbstractImporter
getDocumentBody
in class AbstractImporter
file
- holding the documentjava.io.IOException
- if reading the file failedprotected java.lang.String getDocumentSection(java.io.File file, java.lang.String section) throws java.io.IOException
AbstractImporter
getDocumentSection
in class AbstractImporter
file
- holding the document.section
- the section namejava.io.IOException
- if reading the section failed