Class RtfGenerator


  • public class RtfGenerator
    extends RtfElement
    Represents a generator element which says who generated the RTF document.
    • Constructor Detail

      • RtfGenerator

        public RtfGenerator​(RtfHeader h,
                            java.io.Writer w)
                     throws java.io.IOException
        Default constructor for the generator element.
        Parameters:
        h - a header
        w - a writer
        Throws:
        java.io.IOException - if not caught
    • Method Detail

      • writeRtfContent

        protected void writeRtfContent()
                                throws java.io.IOException
        Must be implemented to write RTF content to m_writer
        Specified by:
        writeRtfContent in class RtfElement
        Throws:
        java.io.IOException - for I/O problems
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in class RtfElement
        Returns:
        true if this element would generate no "useful" RTF content