Package org.apache.fop.render.mif
Class MIFHandler
java.lang.Object
org.apache.fop.fo.FOEventHandler
org.apache.fop.render.mif.MIFHandler
The MIF Handler.
This generates MIF output using the structure events from
the FO Tree sent to this structure handler.
This builds an MIF file and writes it to the output.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.commons.logging.LogLoggerprotected MIFFilethe MIFFile instanceprotected OutputStreamthe OutputStream to write toprivate MIFElementprivate MIFElementFields inherited from class org.apache.fop.fo.FOEventHandler
fontInfo, foUserAgent -
Constructor Summary
ConstructorsConstructorDescriptionMIFHandler(FOUserAgent ua, OutputStream os) Creates a new MIF handler on a given OutputStream. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendCharacters(String str) voidProcess a Character.voidcharacters(FOText foText) Process character data.voidvoidvoidvoidendColumn(TableColumn tc) voidThis method is called to indicate the end of a document run.voidvoidendFooter(TableFooter tf) voidendFootnote(Footnote footnote) Process the ending of a footnote.voidendFootnoteBody(FootnoteBody body) Process the ending of a footnote body.voidendHeader(TableHeader th) voidvoidProcess the end of an InstreamForeignObject.voidProcess the end of a Leader.voidProcess end of a Link.voidvoidendListBody(ListItemBody listItemBody) Process end of a ListBody.voidendListItem(ListItem li) voidendListLabel(ListItemLabel listItemLabel) Process end of a ListLabel.voidProcess end of a Markup.voidendPageNumber(PageNumber pagenum) voidendPageSequence(PageSequence pageSeq) voidvoidendStatic(StaticContent staticContent) Process end of a Static.voidvoidimage(ExternalGraphic eg) Process an ExternalGraphic.voidpageRef()Process a pageRef.voidstartBlock(Block bl) voidvoidvoidvoidThis method is called to indicate the start of a new document run.voidThis method is called to indicate the start of a new fo:flow or fo:static-content.voidvoidstartFootnote(Footnote footnote) Process the start of a footnote.voidProcess the start of a footnote body.voidvoidstartInline(Inline inl) voidProcess the start of an InstreamForeignObject.voidProcess the start of a Leader.voidProcess start of a Link.voidvoidstartListBody(ListItemBody listItemBody) Process start of a ListBody.voidvoidstartListLabel(ListItemLabel listItemLabel) Process start of a ListLabel.voidProcess start of a Markup.voidstartPageNumber(PageNumber pagenum) voidstartPageSequence(PageSequence pageSeq) voidvoidstartStatic(StaticContent staticContent) Process start of a Static.voidstartTable(Table tbl) Methods inherited from class org.apache.fop.fo.FOEventHandler
endBlockContainer, endExternalDocument, endPageNumberCitation, endPageNumberCitationLast, endRetrieveMarker, endRetrieveTableMarker, endRoot, endWrapper, getFontInfo, getResults, getUserAgent, restoreState, restoreState, startBlockContainer, startExternalDocument, startPageNumberCitation, startPageNumberCitationLast, startRetrieveMarker, startRetrieveTableMarker, startRoot, startWrapper
-
Field Details
-
log
private static org.apache.commons.logging.Log logLogger -
mifFile
the MIFFile instance -
outStream
the OutputStream to write to -
textFlow
-
para
-
-
Constructor Details
-
MIFHandler
Creates a new MIF handler on a given OutputStream.- Parameters:
ua- FOUserAgent instance for this processos- OutputStream to write to
-
-
Method Details
-
startDocument
This method is called to indicate the start of a new document run.- Overrides:
startDocumentin classFOEventHandler- Throws:
SAXException- In case of a problem
-
endDocument
This method is called to indicate the end of a document run.- Overrides:
endDocumentin classFOEventHandler- Throws:
SAXException- In case of a problem
-
startPageSequence
- Overrides:
startPageSequencein classFOEventHandler- Parameters:
pageSeq- PageSequence that is starting.
-
endPageSequence
- Overrides:
endPageSequencein classFOEventHandler- Parameters:
pageSeq- PageSequence that is ending.
-
startFlow
This method is called to indicate the start of a new fo:flow or fo:static-content. This method also handles fo:static-content tags, because the StaticContent class is derived from the Flow class.- Overrides:
startFlowin classFOEventHandler- Parameters:
fl- Flow that is starting.
-
endFlow
- Overrides:
endFlowin classFOEventHandler- Parameters:
fl- Flow that is ending.
-
startBlock
- Overrides:
startBlockin classFOEventHandler- Parameters:
bl- Block that is starting.
-
endBlock
- Overrides:
endBlockin classFOEventHandler- Parameters:
bl- Block that is ending.
-
startInline
- Overrides:
startInlinein classFOEventHandler- Parameters:
inl- Inline that is starting.
-
endInline
- Overrides:
endInlinein classFOEventHandler- Parameters:
inl- Inline that is ending.
-
startTable
- Overrides:
startTablein classFOEventHandler- Parameters:
tbl- Table that is starting.
-
endTable
- Overrides:
endTablein classFOEventHandler- Parameters:
tbl- Table that is ending.
-
startColumn
- Overrides:
startColumnin classFOEventHandler- Parameters:
tc- TableColumn that is starting;
-
endColumn
- Overrides:
endColumnin classFOEventHandler- Parameters:
tc- TableColumn that is ending;
-
startHeader
- Overrides:
startHeaderin classFOEventHandler- Parameters:
th- TableHeader that is starting;
-
endHeader
- Overrides:
endHeaderin classFOEventHandler- Parameters:
th- TableHeader that is ending.
-
startBody
- Overrides:
startBodyin classFOEventHandler- Parameters:
tb- TableBody that is starting.
-
endBody
- Overrides:
endBodyin classFOEventHandler- Parameters:
tb- TableBody that is ending.
-
startRow
- Overrides:
startRowin classFOEventHandler- Parameters:
tr- TableRow that is starting.
-
endRow
- Overrides:
endRowin classFOEventHandler- Parameters:
tr- TableRow that is ending.
-
startCell
- Overrides:
startCellin classFOEventHandler- Parameters:
tc- TableCell that is starting.
-
endCell
- Overrides:
endCellin classFOEventHandler- Parameters:
tc- TableCell that is ending.
-
startList
- Overrides:
startListin classFOEventHandler- Parameters:
lb- ListBlock that is starting.
-
endList
- Overrides:
endListin classFOEventHandler- Parameters:
lb- ListBlock that is ending.
-
startListItem
- Overrides:
startListItemin classFOEventHandler- Parameters:
li- ListItem that is starting.
-
endListItem
- Overrides:
endListItemin classFOEventHandler- Parameters:
li- ListItem that is ending.
-
startListLabel
Process start of a ListLabel.- Overrides:
startListLabelin classFOEventHandler- Parameters:
listItemLabel- ListItemLabel that is starting
-
endListLabel
Process end of a ListLabel.- Overrides:
endListLabelin classFOEventHandler- Parameters:
listItemLabel- ListItemLabel that is ending
-
startListBody
Process start of a ListBody.- Overrides:
startListBodyin classFOEventHandler- Parameters:
listItemBody- ListItemBody that is starting
-
endListBody
Process end of a ListBody.- Overrides:
endListBodyin classFOEventHandler- Parameters:
listItemBody- ListItemBody that is ending
-
startStatic
Process start of a Static.- Overrides:
startStaticin classFOEventHandler- Parameters:
staticContent- StaticContent that is starting
-
endStatic
Process end of a Static.- Overrides:
endStaticin classFOEventHandler- Parameters:
staticContent- StaticContent that is ending
-
startMarkup
public void startMarkup()Process start of a Markup.- Overrides:
startMarkupin classFOEventHandler
-
endMarkup
public void endMarkup()Process end of a Markup.- Overrides:
endMarkupin classFOEventHandler
-
startLink
Process start of a Link.- Overrides:
startLinkin classFOEventHandler- Parameters:
basicLink- BasicLink that is starting
-
endLink
Process end of a Link.- Overrides:
endLinkin classFOEventHandler- Parameters:
basicLink- BasicLink that is ending
-
image
Process an ExternalGraphic.- Overrides:
imagein classFOEventHandler- Parameters:
eg- ExternalGraphic to process.
-
pageRef
public void pageRef()Process a pageRef.- Overrides:
pageRefin classFOEventHandler
-
startInstreamForeignObject
Process the start of an InstreamForeignObject.- Overrides:
startInstreamForeignObjectin classFOEventHandler- Parameters:
ifo- InstreamForeignObject that is starting
-
endInstreamForeignObject
Process the end of an InstreamForeignObject.- Overrides:
endInstreamForeignObjectin classFOEventHandler- Parameters:
ifo- InstreamForeignObject that is ending
-
startFootnote
Process the start of a footnote.- Overrides:
startFootnotein classFOEventHandler- Parameters:
footnote- Footnote that is starting
-
endFootnote
Process the ending of a footnote.- Overrides:
endFootnotein classFOEventHandler- Parameters:
footnote- Footnote that is ending
-
startFootnoteBody
Process the start of a footnote body.- Overrides:
startFootnoteBodyin classFOEventHandler- Parameters:
body- FootnoteBody that is starting
-
endFootnoteBody
Process the ending of a footnote body.- Overrides:
endFootnoteBodyin classFOEventHandler- Parameters:
body- FootnoteBody that is ending
-
startLeader
Process the start of a Leader.- Overrides:
startLeaderin classFOEventHandler- Parameters:
l- Leader that is starting
-
endLeader
Process the end of a Leader.- Overrides:
endLeaderin classFOEventHandler- Parameters:
l- Leader that is ending
-
character
Description copied from class:FOEventHandlerProcess a Character.- Overrides:
characterin classFOEventHandler- Parameters:
c- Character to process.
-
characters
Process character data.- Overrides:
charactersin classFOEventHandler- Parameters:
foText- text to process
-
startPageNumber
- Overrides:
startPageNumberin classFOEventHandler- Parameters:
pagenum- PageNumber that is starting.
-
endPageNumber
- Overrides:
endPageNumberin classFOEventHandler- Parameters:
pagenum- PageNumber that is ending.
-
appendCharacters
-