Class CDATASection

    • Field Detail

      • prefix

        final java.lang.String prefix
      • suffix

        final java.lang.String suffix
      • computedCDATASectionStr

        private volatile java.lang.String computedCDATASectionStr
    • Constructor Detail

      • CDATASection

        CDATASection​(java.lang.CharSequence content)
      • CDATASection

        CDATASection​(java.lang.String prefix,
                     java.lang.CharSequence content,
                     java.lang.String suffix)
      • CDATASection

        CDATASection​(java.lang.CharSequence content,
                     java.lang.String templateName,
                     int line,
                     int col)
      • CDATASection

        CDATASection​(java.lang.String prefix,
                     java.lang.CharSequence content,
                     java.lang.String suffix,
                     java.lang.String templateName,
                     int line,
                     int col)
    • Method Detail

      • getCDATASection

        public java.lang.String getCDATASection()
        Description copied from interface: ICDATASection

        Returns the whole CDATA Section, including the <![CDATA[...]]> prefix and suffix.

        Specified by:
        getCDATASection in interface ICDATASection
        Returns:
        the CDATA Section.
      • getContent

        public java.lang.String getContent()
        Description copied from interface: ICDATASection

        Returns the content of the CDATA Section, without the prefix or suffix.

        Specified by:
        getContent in interface ICDATASection
        Returns:
        the content of the CDATA Section.
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence
      • write

        public void write​(java.io.Writer writer)
                   throws java.io.IOException
        Description copied from interface: ITemplateEvent

        Writes this event to the specified Writer.

        Template output performed at OutputTemplateHandler is done by calling these methods at each of the events resulting from template processing.

        Specified by:
        write in interface ITemplateEvent
        Parameters:
        writer - the writer this event should be written to.
        Throws:
        java.io.IOException - if an input/output exception occurs.