org.jfor.jfor.rtflib.rtfdoc
Class RtfHeader
java.lang.Object
org.jfor.jfor.rtflib.rtfdoc.RtfElement
org.jfor.jfor.rtflib.rtfdoc.RtfContainer
org.jfor.jfor.rtflib.rtfdoc.RtfHeader
- class RtfHeader
- extends RtfContainer
RTF file header, contains style, font and other document-level information.
- Author:
- Bertrand Delacretaz bdelacretaz@codeconsult.ch
Constructor Summary |
(package private) |
RtfHeader(RtfFile f,
java.io.Writer w)
Create an RTF header |
Method Summary |
(package private) void |
write(java.lang.String toWrite)
write directly to our Writer
TODO should check that this done at the right point, or even better, store
what is written here to render it in writeRtfContent. |
protected void |
writeRtfContent()
Overridden to write our own data before our children's data |
(package private) void |
writeRtfString(java.lang.String toWrite)
write to our Writer using an RtfStringConverter |
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer |
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString |
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RtfHeader
RtfHeader(RtfFile f,
java.io.Writer w)
throws java.io.IOException
- Create an RTF header
writeRtfContent
protected void writeRtfContent()
throws java.io.IOException
- Overridden to write our own data before our children's data
- Overrides:
writeRtfContent
in class RtfContainer
- Throws:
java.io.IOException
write
void write(java.lang.String toWrite)
throws java.io.IOException
- write directly to our Writer
TODO should check that this done at the right point, or even better, store
what is written here to render it in writeRtfContent. <-- it is for the color table
- Throws:
java.io.IOException
writeRtfString
void writeRtfString(java.lang.String toWrite)
throws java.io.IOException
- write to our Writer using an RtfStringConverter
- Throws:
java.io.IOException