|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfFile
public class RtfFile
Models the top-level structure of an RTF file.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch), Andreas Putz (a.putz@skynamics.com), and Christopher Scott (scottc@westinghouse.com).
| Field Summary |
|---|
| Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement |
|---|
attrib, parent, writer |
| Constructor Summary | |
|---|---|
RtfFile(java.io.Writer w)
Create an RTF file that outputs to the given Writer |
|
| Method Summary | |
|---|---|
void |
flush()
must be called when done creating the document |
RtfDocumentArea |
getDocumentArea()
Call startDocumentArea if needed and return the document area object. |
RtfListTable |
getListTable()
Get the list table. |
RtfPageArea |
getPageArea()
Call startPageArea if needed and return the page area object. |
static void |
main(java.lang.String[] args)
minimal test and usage example |
RtfDocumentArea |
startDocumentArea()
Closes the RtfHeader if not done yet, and starts the document area. |
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader |
startHeader()
If called, must be called before startDocumentArea |
RtfListTable |
startListTable(RtfAttributes attr)
Creates the list table. |
RtfPageArea |
startPageArea()
Closes the RtfHeader if not done yet, and starts the docment area. |
protected void |
writeRtfPrefix()
overridden to write RTF prefix code, what comes before our children |
protected void |
writeRtfSuffix()
overridden to write RTF suffix code, what comes after our children |
| Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer |
|---|
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent |
| Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement |
|---|
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RtfFile(java.io.Writer w)
throws java.io.IOException
w - the Writer to write to
java.io.IOException - for I/O problems| Method Detail |
|---|
public org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader startHeader()
throws java.io.IOException,
RtfStructureException
java.io.IOException - for I/O problems
RtfStructureException - for illegal RTF structure
public RtfListTable startListTable(RtfAttributes attr)
throws java.io.IOException
attr - attributes for the RtfListTable
java.io.IOException - for I/O problemspublic RtfListTable getListTable()
public RtfPageArea startPageArea()
throws java.io.IOException,
RtfStructureException
java.io.IOException - for I/O problems
RtfStructureException - for illegal RTF structure
public RtfPageArea getPageArea()
throws java.io.IOException,
RtfStructureException
java.io.IOException - for I/O problems
RtfStructureException - for illegal RTF structure
public RtfDocumentArea startDocumentArea()
throws java.io.IOException,
RtfStructureException
java.io.IOException - for I/O problems
RtfStructureException - for illegal RTF structure
public RtfDocumentArea getDocumentArea()
throws java.io.IOException,
RtfStructureException
java.io.IOException - for I/O problems
RtfStructureException - for illegal RTF structure
protected void writeRtfPrefix()
throws java.io.IOException
writeRtfPrefix in class RtfElementjava.io.IOException - for I/O problems
protected void writeRtfSuffix()
throws java.io.IOException
writeRtfSuffix in class RtfElementjava.io.IOException - for I/O problems
public void flush()
throws java.io.IOException
java.io.IOException - for I/O problems
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - command-line arguments
java.lang.Exception - for problems
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||