|
|||||||||
| Home >> All >> org >> jfor >> jfor >> rtflib >> [ rtfdoc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfor.jfor.rtflib.rtfdoc
Class RtfFile

java.lang.Objectorg.jfor.jfor.rtflib.rtfdoc.RtfElement
org.jfor.jfor.rtflib.rtfdoc.RtfContainer
org.jfor.jfor.rtflib.rtfdoc.RtfFile
- public class RtfFile
- extends RtfContainer
Models the top-level structure of an RTF file.
| Field Summary | |
private int |
listNum
|
private RtfDocumentArea |
m_docArea
|
private RtfHeader |
m_header
|
private RtfListTable |
m_listTable
|
private RtfContainer |
m_listTableContainer
|
private org.jfor.jfor.converter.ConverterLogChannel |
m_log
|
private RtfPageArea |
m_pageArea
|
| Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer |
|
| Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
m_attrib, m_parent, m_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. |
(package private) org.jfor.jfor.converter.ConverterLogChannel |
getLog()
Gets the log channel. |
RtfPageArea |
getPageArea()
Call startPageArea if needed and return the page area object. |
static void |
main(java.lang.String[] args)
minimal test and usage example |
void |
setLogChannel(org.jfor.jfor.converter.ConverterLogChannel log)
optional log channel |
RtfDocumentArea |
startDocumentArea()
Closes the RtfHeader if not done yet, and starts the document area. |
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.jfor.jfor.rtflib.rtfdoc.RtfContainer |
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent |
| Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, 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 |
| Field Detail |
m_header
private RtfHeader m_header
m_pageArea
private RtfPageArea m_pageArea
m_listTable
private RtfListTable m_listTable
m_docArea
private RtfDocumentArea m_docArea
m_log
private org.jfor.jfor.converter.ConverterLogChannel m_log
m_listTableContainer
private RtfContainer m_listTableContainer
listNum
private int listNum
| Constructor Detail |
RtfFile
public RtfFile(java.io.Writer w) throws java.io.IOException
- Create an RTF file that outputs to the given Writer
| Method Detail |
setLogChannel
public void setLogChannel(org.jfor.jfor.converter.ConverterLogChannel log)
- optional log channel
getLog
org.jfor.jfor.converter.ConverterLogChannel getLog()
- Gets the log channel.
If logchannel not set, it will return a empty log channel.
startHeader
public RtfHeader startHeader() throws java.io.IOException
- If called, must be called before startDocumentArea
startListTable
public RtfListTable startListTable(RtfAttributes attr) throws java.io.IOException
- Creates the list table.
startPageArea
public RtfPageArea startPageArea() throws java.io.IOException, org.jfor.jfor.rtflib.exceptions.RtfStructureException
- Closes the RtfHeader if not done yet, and starts the docment area.
Like startDocumentArea, is only called once. This is not optimal,
must be able to have multiple page definition, and corresponding
Document areas
getPageArea
public RtfPageArea getPageArea() throws java.io.IOException, org.jfor.jfor.rtflib.exceptions.RtfStructureException
- Call startPageArea if needed and return the page area object.
startDocumentArea
public RtfDocumentArea startDocumentArea() throws java.io.IOException, org.jfor.jfor.rtflib.exceptions.RtfStructureException
- Closes the RtfHeader if not done yet, and starts the document area.
Must be called once only.
getDocumentArea
public RtfDocumentArea getDocumentArea() throws java.io.IOException, org.jfor.jfor.rtflib.exceptions.RtfStructureException
- Call startDocumentArea if needed and return the document area object.
writeRtfPrefix
protected void writeRtfPrefix()
throws java.io.IOException
- overridden to write RTF prefix code, what comes before our children
- Overrides:
writeRtfPrefixin classRtfElement
writeRtfSuffix
protected void writeRtfSuffix()
throws java.io.IOException
- overridden to write RTF suffix code, what comes after our children
- Overrides:
writeRtfSuffixin classRtfElement
flush
public void flush()
throws java.io.IOException
- must be called when done creating the document
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- minimal test and usage example
|
|||||||||
| Home >> All >> org >> jfor >> jfor >> rtflib >> [ rtfdoc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC