Class RtfHeader


  • class RtfHeader
    extends RtfContainer

    RTF file header, contains style, font and other document-level information.

    This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch), Andreas Putz (a.putz@skynamics.com), and Marc Wilhelm Kuester.

    • Field Detail

      • userProperties

        private final java.util.Map userProperties
    • Constructor Detail

      • RtfHeader

        RtfHeader​(RtfFile f,
                  java.io.Writer w)
           throws java.io.IOException
        Create an RTF header
        Throws:
        java.io.IOException
    • Method Detail

      • 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 - for I/O problems
      • writeUserProperties

        private void writeUserProperties()
                                  throws java.io.IOException
        write user properties if any
        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
      • writeFootnoteProperties

        private void writeFootnoteProperties()
                                      throws java.io.IOException
        write properties for footnote handling
        Throws:
        java.io.IOException