public class RTFHandler extends FOEventHandler
fontInfo, foUserAgent
Constructor and Description |
---|
RTFHandler(FOUserAgent userAgent,
java.io.OutputStream os)
Creates a new RTF structure handler.
|
Modifier and Type | Method and Description |
---|---|
void |
endBlock(Block bl) |
void |
endBlockContainer(BlockContainer bl) |
void |
endBody(TableBody body) |
void |
endCell(TableCell tc) |
void |
endColumn(TableColumn tc) |
void |
endDocument()
This method is called to indicate the end of a document run.
|
void |
endFlow(Flow fl) |
void |
endFooter(TableFooter footer) |
void |
endFootnote(Footnote footnote)
Process the ending of a footnote.
|
void |
endFootnoteBody(FootnoteBody body)
Process the ending of a footnote body.
|
void |
endHeader(TableHeader header) |
void |
endInline(Inline inl) |
void |
endLink()
Process end of a Link.
|
void |
endList(ListBlock lb) |
void |
endListBody()
Process end of a ListBody.
|
void |
endListItem(ListItem li) |
void |
endListLabel()
Process end of a ListLabel.
|
void |
endMarkup()
Process end of a Markup.
|
void |
endPageNumber(PageNumber pagenum) |
void |
endPageSequence(PageSequence pageSeq) |
void |
endRow(TableRow tr) |
void |
endStatic()
Process end of a Static.
|
void |
endTable(Table tbl) |
void |
foreignObject(InstreamForeignObject ifo)
Process an InstreamForeignObject.
|
protected void |
handleIOTrouble(java.io.IOException ioe)
Central exception handler for I/O exceptions.
|
void |
image(ExternalGraphic eg)
Process an ExternalGraphic.
|
void |
leader(Leader l)
Process a Leader.
|
void |
pageRef()
Process a pageRef.
|
void |
startBlock(Block bl) |
void |
startBlockContainer(BlockContainer blc) |
void |
startBody(TableBody body) |
void |
startCell(TableCell tc) |
void |
startColumn(TableColumn tc) |
void |
startDocument()
This method is called to indicate the start of a new document run.
|
void |
startFlow(Flow fl)
This method is called to indicate the start of a new fo:flow
or fo:static-content.
|
void |
startFooter(TableFooter footer) |
void |
startFootnote(Footnote footnote)
Process the start of a footnote.
|
void |
startFootnoteBody(FootnoteBody body)
Process the start of a footnote body.
|
void |
startHeader(TableHeader header) |
void |
startInline(Inline inl) |
void |
startLink(BasicLink basicLink)
Process start of a Link.
|
void |
startList(ListBlock lb) |
void |
startListBody()
Process start of a ListBody.
|
void |
startListItem(ListItem li) |
void |
startListLabel()
Process start of a ListLabel.
|
void |
startMarkup()
Process start of a Markup.
|
void |
startPageNumber(PageNumber pagenum) |
void |
startPageNumberCitation(PageNumberCitation l) |
void |
startPageSequence(PageSequence pageSeq) |
void |
startRow(TableRow tr) |
void |
startStatic()
Process start of a Static.
|
void |
startTable(Table tbl) |
void |
text(FOText text,
char[] data,
int start,
int length) |
character, characters, endExternalDocument, endPageNumberCitation, endPageNumberCitationLast, getFontInfo, getUserAgent, startExternalDocument, startPageNumberCitationLast
public RTFHandler(FOUserAgent userAgent, java.io.OutputStream os)
userAgent
- the FOUserAgent for this processos
- OutputStream to write toprotected void handleIOTrouble(java.io.IOException ioe)
ioe
- IOException to handlepublic void startDocument() throws org.xml.sax.SAXException
startDocument
in class FOEventHandler
org.xml.sax.SAXException
- In case of a problempublic void endDocument() throws org.xml.sax.SAXException
endDocument
in class FOEventHandler
org.xml.sax.SAXException
- In case of a problempublic void startPageSequence(PageSequence pageSeq)
startPageSequence
in class FOEventHandler
pageSeq
- PageSequence that is starting.public void endPageSequence(PageSequence pageSeq)
endPageSequence
in class FOEventHandler
pageSeq
- PageSequence that is ending.public void startFlow(Flow fl)
startFlow
in class FOEventHandler
fl
- Flow that is starting.public void endFlow(Flow fl)
endFlow
in class FOEventHandler
fl
- Flow that is ending.public void startBlock(Block bl)
startBlock
in class FOEventHandler
bl
- Block that is starting.public void endBlock(Block bl)
endBlock
in class FOEventHandler
bl
- Block that is ending.public void startBlockContainer(BlockContainer blc)
startBlockContainer
in class FOEventHandler
blc
- BlockContainer that is starting.public void endBlockContainer(BlockContainer bl)
endBlockContainer
in class FOEventHandler
bl
- BlockContainer that is ending.public void startTable(Table tbl)
startTable
in class FOEventHandler
tbl
- Table that is starting.public void endTable(Table tbl)
endTable
in class FOEventHandler
tbl
- Table that is ending.public void startColumn(TableColumn tc)
startColumn
in class FOEventHandler
tc
- TableColumn that is starting;public void endColumn(TableColumn tc)
endColumn
in class FOEventHandler
tc
- TableColumn that is ending;public void startHeader(TableHeader header)
startHeader
in class FOEventHandler
header
- TableHeader that is starting;public void endHeader(TableHeader header)
endHeader
in class FOEventHandler
header
- TableHeader that is ending.public void startFooter(TableFooter footer)
startFooter
in class FOEventHandler
footer
- TableFooter that is starting.public void endFooter(TableFooter footer)
endFooter
in class FOEventHandler
footer
- TableFooter that is ending.public void startInline(Inline inl)
startInline
in class FOEventHandler
inl
- Inline that is starting.public void endInline(Inline inl)
endInline
in class FOEventHandler
inl
- Inline that is ending.public void startBody(TableBody body)
startBody
in class FOEventHandler
body
- TableBody that is starting.public void endBody(TableBody body)
endBody
in class FOEventHandler
body
- TableBody that is ending.public void startRow(TableRow tr)
startRow
in class FOEventHandler
tr
- TableRow that is starting.public void endRow(TableRow tr)
endRow
in class FOEventHandler
tr
- TableRow that is ending.public void startCell(TableCell tc)
startCell
in class FOEventHandler
tc
- TableCell that is starting.public void endCell(TableCell tc)
endCell
in class FOEventHandler
tc
- TableCell that is ending.public void startList(ListBlock lb)
startList
in class FOEventHandler
lb
- ListBlock that is starting.public void endList(ListBlock lb)
endList
in class FOEventHandler
lb
- ListBlock that is ending.public void startListItem(ListItem li)
startListItem
in class FOEventHandler
li
- ListItem that is starting.public void endListItem(ListItem li)
endListItem
in class FOEventHandler
li
- ListItem that is ending.public void startListLabel()
startListLabel
in class FOEventHandler
public void endListLabel()
endListLabel
in class FOEventHandler
public void startListBody()
startListBody
in class FOEventHandler
public void endListBody()
endListBody
in class FOEventHandler
public void startStatic()
startStatic
in class FOEventHandler
public void endStatic()
endStatic
in class FOEventHandler
public void startMarkup()
startMarkup
in class FOEventHandler
public void endMarkup()
endMarkup
in class FOEventHandler
public void startLink(BasicLink basicLink)
startLink
in class FOEventHandler
basicLink
- BasicLink that is endingpublic void endLink()
endLink
in class FOEventHandler
public void image(ExternalGraphic eg)
image
in class FOEventHandler
eg
- ExternalGraphic to process.public void foreignObject(InstreamForeignObject ifo)
foreignObject
in class FOEventHandler
ifo
- InstreamForeignObject to process.public void pageRef()
pageRef
in class FOEventHandler
public void startFootnote(Footnote footnote)
startFootnote
in class FOEventHandler
footnote
- Footnote that is startingpublic void endFootnote(Footnote footnote)
endFootnote
in class FOEventHandler
footnote
- Footnote that is endingpublic void startFootnoteBody(FootnoteBody body)
startFootnoteBody
in class FOEventHandler
body
- FootnoteBody that is startingpublic void endFootnoteBody(FootnoteBody body)
endFootnoteBody
in class FOEventHandler
body
- FootnoteBody that is endingpublic void leader(Leader l)
leader
in class FOEventHandler
l
- Leader to process.public void text(FOText text, char[] data, int start, int length)
text
- FOText objectdata
- Array of characters to process.start
- Offset for characters to process.length
- Portion of array to process.public void startPageNumber(PageNumber pagenum)
startPageNumber
in class FOEventHandler
pagenum
- PageNumber that is starting.public void endPageNumber(PageNumber pagenum)
endPageNumber
in class FOEventHandler
pagenum
- PageNumber that is ending.public void startPageNumberCitation(PageNumberCitation l)
startPageNumberCitation
in class FOEventHandler
l
- PageNumberCitation that is starting.Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.