Class AbstractImporter
java.lang.Object
com.nomagic.reportwizard.tools.importer.template.AbstractImporter
- All Implemented Interfaces:
IImporter
- Direct Known Subclasses:
HtmlImporter,RtfImporter,TxtImporter,XmlImporter
the Abstract Importer implementation.
- Since:
- Jan 22, 2009
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringgetDocumentBody(File file) Get the HTML Body.protected StringgetDocumentSection(File file, String section) Get a Section in an Html document.initialize reader invalid input: '&' writer.postFormat(StringWriter writer) Apply necessary document dependent formatting.
-
Field Details
-
log
protected org.apache.logging.log4j.Logger logthe logger for IImporter instances. -
reader
the reader containing the content.
-
-
Constructor Details
-
AbstractImporter
public AbstractImporter()
-
-
Method Details
-
getReader
initialize reader invalid input: '&' writer. -
postFormat
Apply necessary document dependent formatting.- Specified by:
postFormatin interfaceIImporter- Parameters:
writer- the writer to post format- Returns:
- the final output.
-
getDocumentBody
Get the HTML Body.- Parameters:
file- holding the document- Returns:
- the Text
- Throws:
IOException- if reading the file failed
-
getDocumentSection
Get a Section in an Html document.- Parameters:
file- holding the document.section- the section name- Returns:
- the section text
- Throws:
IOException- if reading the section failed
-