public class RtfFile extends RtfContainer
RtfFileExamplem_attrib, m_parent, m_writer| Constructor and Description |
|---|
RtfFile(java.io.Writer w)
Create an RTF file that outputs to the given Writer
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
must be called when done creating the document
|
RtfDocumentArea |
getDocumentArea()
Call startDocumentArea if needed and return the document area object.
|
(package private) 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(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
|
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContentclose, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNSpublic RtfFile(java.io.Writer w)
throws java.io.IOException
java.io.IOExceptionpublic void setLogChannel(ConverterLogChannel log)
ConverterLogChannel getLog()
public RtfHeader startHeader() throws java.io.IOException
java.io.IOExceptionpublic RtfListTable startListTable(RtfAttributes attr) throws java.io.IOException
java.io.IOExceptionpublic RtfPageArea startPageArea() throws java.io.IOException, RtfStructureException
java.io.IOExceptionRtfStructureExceptionpublic RtfPageArea getPageArea() throws java.io.IOException, RtfStructureException
java.io.IOExceptionRtfStructureExceptionpublic RtfDocumentArea startDocumentArea() throws java.io.IOException, RtfStructureException
java.io.IOExceptionRtfStructureExceptionpublic RtfDocumentArea getDocumentArea() throws java.io.IOException, RtfStructureException
java.io.IOExceptionRtfStructureExceptionprotected void writeRtfPrefix()
throws java.io.IOException
writeRtfPrefix in class RtfElementjava.io.IOExceptionprotected void writeRtfSuffix()
throws java.io.IOException
writeRtfSuffix in class RtfElementjava.io.IOExceptionpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception