@OpenApiAll public abstract class AbstractImporter extends java.lang.Object implements IImporter
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
log
the logger for IImporter instances.
|
protected java.io.Reader |
reader
the reader containing the content.
|
Constructor and Description |
---|
AbstractImporter() |
Modifier and Type | Method and Description |
---|---|
protected abstract 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.
|
java.io.Reader |
getReader()
initialize reader & writer.
|
com.nomagic.magicreport.engine.ITool.RetainedString |
postFormat(java.io.StringWriter writer)
Apply necessary document dependent formatting.
|
protected org.apache.log4j.Logger log
protected java.io.Reader reader
public java.io.Reader getReader()
public com.nomagic.magicreport.engine.ITool.RetainedString postFormat(java.io.StringWriter writer)
postFormat
in interface IImporter
writer
- the writer to post formatprotected abstract java.lang.String getDocumentBody(java.io.File file) throws java.io.IOException
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
file
- holding the document.section
- the section namejava.io.IOException
- if reading the section failed