Class RtfString


  • public class RtfString
    extends RtfElement

    Plain text in a RTF file, without any formatings.

    This work was authored by Peter Herweg (pherweg@web.de).

    • Method Detail

      • isEmpty

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

        protected void writeRtfContent()
                                throws java.io.IOException
        write RTF code of all our children
        Specified by:
        writeRtfContent in class RtfElement
        Throws:
        java.io.IOException - for I/O problems
      • getText

        public java.lang.String getText()
        Returns:
        the text
      • setText

        public void setText​(java.lang.String s)
        Parameters:
        s - some text