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.Log
Loggerprotected MIFFile
the MIFFile instanceprotected OutputStream
the OutputStream to write toprivate MIFElement
private MIFElement
Fields 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 void
appendCharacters
(String str) void
Process a Character.void
characters
(FOText foText) Process character data.void
void
void
void
endColumn
(TableColumn tc) void
This method is called to indicate the end of a document run.void
void
endFooter
(TableFooter tf) void
endFootnote
(Footnote footnote) Process the ending of a footnote.void
endFootnoteBody
(FootnoteBody body) Process the ending of a footnote body.void
endHeader
(TableHeader th) void
void
Process the end of an InstreamForeignObject.void
Process the end of a Leader.void
Process end of a Link.void
void
endListBody
(ListItemBody listItemBody) Process end of a ListBody.void
endListItem
(ListItem li) void
endListLabel
(ListItemLabel listItemLabel) Process end of a ListLabel.void
Process end of a Markup.void
endPageNumber
(PageNumber pagenum) void
endPageSequence
(PageSequence pageSeq) void
void
endStatic
(StaticContent staticContent) Process end of a Static.void
void
image
(ExternalGraphic eg) Process an ExternalGraphic.void
pageRef()
Process a pageRef.void
startBlock
(Block bl) void
void
void
void
This method is called to indicate the start of a new document run.void
This method is called to indicate the start of a new fo:flow or fo:static-content.void
void
startFootnote
(Footnote footnote) Process the start of a footnote.void
Process the start of a footnote body.void
void
startInline
(Inline inl) void
Process the start of an InstreamForeignObject.void
Process the start of a Leader.void
Process start of a Link.void
void
startListBody
(ListItemBody listItemBody) Process start of a ListBody.void
void
startListLabel
(ListItemLabel listItemLabel) Process start of a ListLabel.void
Process start of a Markup.void
startPageNumber
(PageNumber pagenum) void
startPageSequence
(PageSequence pageSeq) void
void
startStatic
(StaticContent staticContent) Process start of a Static.void
startTable
(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:
startDocument
in classFOEventHandler
- Throws:
SAXException
- In case of a problem
-
endDocument
This method is called to indicate the end of a document run.- Overrides:
endDocument
in classFOEventHandler
- Throws:
SAXException
- In case of a problem
-
startPageSequence
- Overrides:
startPageSequence
in classFOEventHandler
- Parameters:
pageSeq
- PageSequence that is starting.
-
endPageSequence
- Overrides:
endPageSequence
in 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:
startFlow
in classFOEventHandler
- Parameters:
fl
- Flow that is starting.
-
endFlow
- Overrides:
endFlow
in classFOEventHandler
- Parameters:
fl
- Flow that is ending.
-
startBlock
- Overrides:
startBlock
in classFOEventHandler
- Parameters:
bl
- Block that is starting.
-
endBlock
- Overrides:
endBlock
in classFOEventHandler
- Parameters:
bl
- Block that is ending.
-
startInline
- Overrides:
startInline
in classFOEventHandler
- Parameters:
inl
- Inline that is starting.
-
endInline
- Overrides:
endInline
in classFOEventHandler
- Parameters:
inl
- Inline that is ending.
-
startTable
- Overrides:
startTable
in classFOEventHandler
- Parameters:
tbl
- Table that is starting.
-
endTable
- Overrides:
endTable
in classFOEventHandler
- Parameters:
tbl
- Table that is ending.
-
startColumn
- Overrides:
startColumn
in classFOEventHandler
- Parameters:
tc
- TableColumn that is starting;
-
endColumn
- Overrides:
endColumn
in classFOEventHandler
- Parameters:
tc
- TableColumn that is ending;
-
startHeader
- Overrides:
startHeader
in classFOEventHandler
- Parameters:
th
- TableHeader that is starting;
-
endHeader
- Overrides:
endHeader
in classFOEventHandler
- Parameters:
th
- TableHeader that is ending.
-
startBody
- Overrides:
startBody
in classFOEventHandler
- Parameters:
tb
- TableBody that is starting.
-
endBody
- Overrides:
endBody
in classFOEventHandler
- Parameters:
tb
- TableBody that is ending.
-
startRow
- Overrides:
startRow
in classFOEventHandler
- Parameters:
tr
- TableRow that is starting.
-
endRow
- Overrides:
endRow
in classFOEventHandler
- Parameters:
tr
- TableRow that is ending.
-
startCell
- Overrides:
startCell
in classFOEventHandler
- Parameters:
tc
- TableCell that is starting.
-
endCell
- Overrides:
endCell
in classFOEventHandler
- Parameters:
tc
- TableCell that is ending.
-
startList
- Overrides:
startList
in classFOEventHandler
- Parameters:
lb
- ListBlock that is starting.
-
endList
- Overrides:
endList
in classFOEventHandler
- Parameters:
lb
- ListBlock that is ending.
-
startListItem
- Overrides:
startListItem
in classFOEventHandler
- Parameters:
li
- ListItem that is starting.
-
endListItem
- Overrides:
endListItem
in classFOEventHandler
- Parameters:
li
- ListItem that is ending.
-
startListLabel
Process start of a ListLabel.- Overrides:
startListLabel
in classFOEventHandler
- Parameters:
listItemLabel
- ListItemLabel that is starting
-
endListLabel
Process end of a ListLabel.- Overrides:
endListLabel
in classFOEventHandler
- Parameters:
listItemLabel
- ListItemLabel that is ending
-
startListBody
Process start of a ListBody.- Overrides:
startListBody
in classFOEventHandler
- Parameters:
listItemBody
- ListItemBody that is starting
-
endListBody
Process end of a ListBody.- Overrides:
endListBody
in classFOEventHandler
- Parameters:
listItemBody
- ListItemBody that is ending
-
startStatic
Process start of a Static.- Overrides:
startStatic
in classFOEventHandler
- Parameters:
staticContent
- StaticContent that is starting
-
endStatic
Process end of a Static.- Overrides:
endStatic
in classFOEventHandler
- Parameters:
staticContent
- StaticContent that is ending
-
startMarkup
public void startMarkup()Process start of a Markup.- Overrides:
startMarkup
in classFOEventHandler
-
endMarkup
public void endMarkup()Process end of a Markup.- Overrides:
endMarkup
in classFOEventHandler
-
startLink
Process start of a Link.- Overrides:
startLink
in classFOEventHandler
- Parameters:
basicLink
- BasicLink that is starting
-
endLink
Process end of a Link.- Overrides:
endLink
in classFOEventHandler
- Parameters:
basicLink
- BasicLink that is ending
-
image
Process an ExternalGraphic.- Overrides:
image
in classFOEventHandler
- Parameters:
eg
- ExternalGraphic to process.
-
pageRef
public void pageRef()Process a pageRef.- Overrides:
pageRef
in classFOEventHandler
-
startInstreamForeignObject
Process the start of an InstreamForeignObject.- Overrides:
startInstreamForeignObject
in classFOEventHandler
- Parameters:
ifo
- InstreamForeignObject that is starting
-
endInstreamForeignObject
Process the end of an InstreamForeignObject.- Overrides:
endInstreamForeignObject
in classFOEventHandler
- Parameters:
ifo
- InstreamForeignObject that is ending
-
startFootnote
Process the start of a footnote.- Overrides:
startFootnote
in classFOEventHandler
- Parameters:
footnote
- Footnote that is starting
-
endFootnote
Process the ending of a footnote.- Overrides:
endFootnote
in classFOEventHandler
- Parameters:
footnote
- Footnote that is ending
-
startFootnoteBody
Process the start of a footnote body.- Overrides:
startFootnoteBody
in classFOEventHandler
- Parameters:
body
- FootnoteBody that is starting
-
endFootnoteBody
Process the ending of a footnote body.- Overrides:
endFootnoteBody
in classFOEventHandler
- Parameters:
body
- FootnoteBody that is ending
-
startLeader
Process the start of a Leader.- Overrides:
startLeader
in classFOEventHandler
- Parameters:
l
- Leader that is starting
-
endLeader
Process the end of a Leader.- Overrides:
endLeader
in classFOEventHandler
- Parameters:
l
- Leader that is ending
-
character
Description copied from class:FOEventHandler
Process a Character.- Overrides:
character
in classFOEventHandler
- Parameters:
c
- Character to process.
-
characters
Process character data.- Overrides:
characters
in classFOEventHandler
- Parameters:
foText
- text to process
-
startPageNumber
- Overrides:
startPageNumber
in classFOEventHandler
- Parameters:
pagenum
- PageNumber that is starting.
-
endPageNumber
- Overrides:
endPageNumber
in classFOEventHandler
- Parameters:
pagenum
- PageNumber that is ending.
-
appendCharacters
-