Class RtfBefore

    • Field Detail

      • HEADER

        public static final java.lang.String HEADER
        RtfBefore attributes
        See Also:
        Constant Field Values
      • HEADER_ATTR

        public static final java.lang.String[] HEADER_ATTR
        String array of attribute names
    • Method Detail

      • writeMyAttributes

        protected void writeMyAttributes()
                                  throws java.io.IOException
        Write the attributes for this element
        Throws:
        java.io.IOException - for I/O problems
      • newParagraph

        public RtfParagraph newParagraph()
                                  throws java.io.IOException
        Description copied from interface: IRtfParagraphContainer
        Close current paragraph, if any, and start a new one with default attributes.
        Specified by:
        newParagraph in interface IRtfParagraphContainer
        Returns:
        new paragraph object
        Throws:
        java.io.IOException - for I/O problems.
      • newParagraph

        public RtfParagraph newParagraph​(RtfAttributes attrs)
                                  throws java.io.IOException
        Description copied from interface: IRtfParagraphContainer
        Close current paragraph, if any, and start a new one with specified attributes
        Specified by:
        newParagraph in interface IRtfParagraphContainer
        Parameters:
        attrs - attributes for new paragraph
        Returns:
        new paragraph object
        Throws:
        java.io.IOException - for I/O problems.
      • writeRtfPrefix

        protected void writeRtfPrefix()
                               throws java.io.IOException
        Description copied from class: RtfElement
        Called before writeRtfContent()
        Overrides:
        writeRtfPrefix in class RtfElement
        Throws:
        java.io.IOException - for I/O problems
      • writeRtfSuffix

        protected void writeRtfSuffix()
                               throws java.io.IOException
        Description copied from class: RtfElement
        Called after writeRtfContent()
        Overrides:
        writeRtfSuffix in class RtfElement
        Throws:
        java.io.IOException - for I/O problems
      • closeAll

        public void closeAll()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • newTable

        public RtfTable newTable​(RtfAttributes attrs,
                                 ITableColumnsInfo tc)
                          throws java.io.IOException
        close current table if any and start a new one
        Specified by:
        newTable in interface IRtfTableContainer
        Parameters:
        tc - added by Boris Poudérous on july 2002 in order to process number-columns-spanned attribute
        attrs - for the Table attributes
        Returns:
        new table object
        Throws:
        java.io.IOException - for I/O problems
      • newTable

        public RtfTable newTable​(ITableColumnsInfo tc)
                          throws java.io.IOException
        close current table if any and start a new one
        Specified by:
        newTable in interface IRtfTableContainer
        Parameters:
        tc - Table Columns Info
        Returns:
        new table object
        Throws:
        java.io.IOException - for I/O problems
      • getTextrun

        public RtfTextrun getTextrun()
                              throws java.io.IOException
        Description copied from interface: IRtfTextrunContainer
        Returns the current RtfTextrun object. Opens a new one if necessary.
        Specified by:
        getTextrun in interface IRtfTextrunContainer
        Returns:
        The RtfTextrun object
        Throws:
        java.io.IOException - Thrown when an IO-problem occurs