org.apache.fop.render.mif

Class MIFHandler


public class MIFHandler
extends FOEventHandler

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

protected MIFFile
mifFile
the MIFFile instance
protected OutputStream
outStream
the OutputStream to write to

Fields inherited from class org.apache.fop.fo.FOEventHandler

foUserAgent, fontInfo, propertyListMaker, whiteSpaceHandler

Constructor Summary

MIFHandler(FOUserAgent ua, OutputStream os)
Creates a new MIF handler on a given OutputStream.

Method Summary

void
characters(data[] , int start, int length)
void
endBlock(Block bl)
void
endBody(TableBody tb)
void
endCell(TableCell tc)
void
endColumn(TableColumn tc)
void
endDocument()
void
endFlow(Flow fl)
void
endFooter(TableBody tf)
void
endFootnote(Footnote footnote)
void
endFootnoteBody(FootnoteBody body)
void
endHeader(TableBody th)
void
endInline(Inline inl)
void
endLink()
void
endList(ListBlock lb)
void
endListBody()
void
endListItem(ListItem li)
void
endListLabel()
void
endMarkup()
void
endPageNumber(PageNumber pagenum)
void
endPageSequence(PageSequence pageSeq)
void
endRow(TableRow tr)
void
endStatic()
void
endTable(Table tbl)
void
foreignObject(InstreamForeignObject ifo)
void
image(ExternalGraphic eg)
void
leader(Leader l)
void
pageRef()
void
startBlock(Block bl)
void
startBody(TableBody tb)
void
startCell(TableCell tc)
void
startColumn(TableColumn tc)
void
startDocument()
void
startFlow(Flow fl)
void
startFooter(TableBody tf)
void
startFootnote(Footnote footnote)
void
startFootnoteBody(FootnoteBody body)
void
startHeader(TableBody th)
void
startInline(Inline inl)
void
startLink(BasicLink basicLink)
void
startList(ListBlock lb)
void
startListBody()
void
startListItem(ListItem li)
void
startListLabel()
void
startMarkup()
void
startPageNumber(PageNumber pagenum)
void
startPageSequence(PageSequence pageSeq)
Start the page sequence.
void
startRow(TableRow tr)
void
startStatic()
void
startTable(Table tbl)

Methods inherited from class org.apache.fop.fo.FOEventHandler

character, characters, endBlock, endBlockContainer, endBody, endCell, endColumn, endDocument, endExternalDocument, endFlow, endFooter, endFootnote, endFootnoteBody, endHeader, endInline, endLink, endList, endListBody, endListItem, endListLabel, endMarkup, endPageNumber, endPageNumberCitation, endPageNumberCitationLast, endPageSequence, endRow, endStatic, endTable, foreignObject, getFontInfo, getIDReferences, getPropertyListMaker, getUserAgent, getXMLWhiteSpaceHandler, image, inMarker, leader, pageRef, setPropertyListMaker, startBlock, startBlockContainer, startBody, startCell, startColumn, startDocument, startExternalDocument, startFlow, startFooter, startFootnote, startFootnoteBody, startHeader, startInline, startLink, startList, startListBody, startListItem, startListLabel, startMarkup, startPageNumber, startPageNumberCitation, startPageNumberCitationLast, startPageSequence, startRow, startStatic, startTable, switchMarkerContext

Field Details

mifFile

protected MIFFile mifFile
the MIFFile instance

outStream

protected OutputStream outStream
the OutputStream to write to

Constructor Details

MIFHandler

public MIFHandler(FOUserAgent ua,
                  OutputStream os)
Creates a new MIF handler on a given OutputStream.
Parameters:
ua - FOUserAgent instance for this process
os - OutputStream to write to

Method Details

characters

public void characters(data[] ,
                       int start,
                       int length)
Overrides:
characters in interface FOEventHandler
See Also:
org.apache.fop.fo.FOEventHandler.characters(char[], int, int)

endBlock

public void endBlock(Block bl)
Overrides:
endBlock in interface FOEventHandler

endBody

public void endBody(TableBody tb)
Overrides:
endBody in interface FOEventHandler

endCell

public void endCell(TableCell tc)
Overrides:
endCell in interface FOEventHandler

endColumn

public void endColumn(TableColumn tc)
Overrides:
endColumn in interface FOEventHandler
Parameters:
tc - TableColumn that is ending;

endDocument

public void endDocument()
            throws SAXException
Overrides:
endDocument in interface FOEventHandler

endFlow

public void endFlow(Flow fl)
Overrides:
endFlow in interface FOEventHandler

endFooter

public void endFooter(TableBody tf)
Overrides:
endFooter in interface FOEventHandler

endFootnote

public void endFootnote(Footnote footnote)
Overrides:
endFootnote in interface FOEventHandler

endFootnoteBody

public void endFootnoteBody(FootnoteBody body)
Overrides:
endFootnoteBody in interface FOEventHandler

endHeader

public void endHeader(TableBody th)
Overrides:
endHeader in interface FOEventHandler

endInline

public void endInline(Inline inl)
Overrides:
endInline in interface FOEventHandler
Parameters:
inl - Inline that is ending.

endLink

public void endLink()
Overrides:
endLink in interface FOEventHandler

endList

public void endList(ListBlock lb)
Overrides:
endList in interface FOEventHandler

endListBody

public void endListBody()
Overrides:
endListBody in interface FOEventHandler

endListItem

public void endListItem(ListItem li)
Overrides:
endListItem in interface FOEventHandler

endListLabel

public void endListLabel()
Overrides:
endListLabel in interface FOEventHandler

endMarkup

public void endMarkup()
Overrides:
endMarkup in interface FOEventHandler

endPageNumber

public void endPageNumber(PageNumber pagenum)
Overrides:
endPageNumber in interface FOEventHandler
Parameters:
pagenum - PageNumber that is ending.

endPageSequence

public void endPageSequence(PageSequence pageSeq)
Overrides:
endPageSequence in interface FOEventHandler

endRow

public void endRow(TableRow tr)
Overrides:
endRow in interface FOEventHandler

endStatic

public void endStatic()
Overrides:
endStatic in interface FOEventHandler

endTable

public void endTable(Table tbl)
Overrides:
endTable in interface FOEventHandler

foreignObject

public void foreignObject(InstreamForeignObject ifo)
Overrides:
foreignObject in interface FOEventHandler

image

public void image(ExternalGraphic eg)
Overrides:
image in interface FOEventHandler

leader

public void leader(Leader l)
Overrides:
leader in interface FOEventHandler

pageRef

public void pageRef()
Overrides:
pageRef in interface FOEventHandler

startBlock

public void startBlock(Block bl)
Overrides:
startBlock in interface FOEventHandler

startBody

public void startBody(TableBody tb)
Overrides:
startBody in interface FOEventHandler

startCell

public void startCell(TableCell tc)
Overrides:
startCell in interface FOEventHandler

startColumn

public void startColumn(TableColumn tc)
Overrides:
startColumn in interface FOEventHandler
Parameters:
tc - TableColumn that is starting;

startDocument

public void startDocument()
            throws SAXException
Overrides:
startDocument in interface FOEventHandler

startFlow

public void startFlow(Flow fl)
Overrides:
startFlow in interface FOEventHandler

startFooter

public void startFooter(TableBody tf)
Overrides:
startFooter in interface FOEventHandler

startFootnote

public void startFootnote(Footnote footnote)
Overrides:
startFootnote in interface FOEventHandler

startFootnoteBody

public void startFootnoteBody(FootnoteBody body)
Overrides:
startFootnoteBody in interface FOEventHandler

startHeader

public void startHeader(TableBody th)
Overrides:
startHeader in interface FOEventHandler

startInline

public void startInline(Inline inl)
Overrides:
startInline in interface FOEventHandler
Parameters:
inl - Inline that is starting.

startLink

public void startLink(BasicLink basicLink)
Overrides:
startLink in interface FOEventHandler
See Also:
org.apache.fop.fo.FOEventHandler.startLink(BasicLink basicLink)

startList

public void startList(ListBlock lb)
Overrides:
startList in interface FOEventHandler

startListBody

public void startListBody()
Overrides:
startListBody in interface FOEventHandler

startListItem

public void startListItem(ListItem li)
Overrides:
startListItem in interface FOEventHandler

startListLabel

public void startListLabel()
Overrides:
startListLabel in interface FOEventHandler

startMarkup

public void startMarkup()
Overrides:
startMarkup in interface FOEventHandler

startPageNumber

public void startPageNumber(PageNumber pagenum)
Overrides:
startPageNumber in interface FOEventHandler
Parameters:
pagenum - PageNumber that is starting.

startPageSequence

public void startPageSequence(PageSequence pageSeq)
Start the page sequence. This creates the pages in the MIF document that will be used by the following flows and static areas.
Overrides:
startPageSequence in interface FOEventHandler

startRow

public void startRow(TableRow tr)
Overrides:
startRow in interface FOEventHandler

startStatic

public void startStatic()
Overrides:
startStatic in interface FOEventHandler

startTable

public void startTable(Table tbl)
Overrides:
startTable in interface FOEventHandler

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.