external/tika/src/main/java/com/digitalpebble/stormcrawler/tika/DOMBuilder.java
public void cdata(char ch[], int start, int length) {
        if (isOutsideDocElem()
                && XMLCharacterRecognizer.isWhiteSpace(ch, start, length)) {
            return; // avoid DOM006 Hierarchy request error
        }

        String s = new String(ch, start, length);

        // XXX ab@apache.org: modified from the original, to accomodate TagSoup.
        Node n = m_currentNode.getLastChild();
        if (n instanceof CDATASection) {
            ((CDATASection) n).appendData(s);
        } else if (n instanceof Comment) {
            ((Comment) n).appendData(s);
        }
    }
public void cdata(char ch[], int start, int length) {
        if (isOutsideDocElem()
                && XMLCharacterRecognizer.isWhiteSpace(ch, start, length)) {
            return; // avoid DOM006 Hierarchy request error
        }

        String s = new String(ch, start, length);

        // XXX ab@apache.org: modified from the original, to accomodate TagSoup.
        Node n = m_currentNode.getLastChild();
        if (n instanceof CDATASection) {
            ((CDATASection) n).appendData(s);
        } else if (n instanceof Comment) {
            ((Comment) n).appendData(s);
        }
    }
public void cdata ( char ch [ ] , int start , int length ) { if ( isOutsideDocElem ( ) && XMLCharacterRecognizer . isWhiteSpace ( ch , start , length ) ) { return ; // avoid DOM006 Hierarchy request error } String s = new String ( ch , start , length ) ; // XXX ab@apache.org: modified from the original, to accomodate TagSoup. Node n = m_currentNode . getLastChild ( ) ; if ( n instanceof CDATASection ) { ( ( CDATASection ) n ) . appendData ( s ) ; } else if ( n instanceof Comment ) { ( ( Comment ) n ) . appendData ( s ) ; } }
Receive notification of cdata.

<p>
The Parser will call this method to report each chunk of character data.
SAX parsers may return all contiguous character data in a single chunk,
or they may split it into several chunks; however, all of the characters
in any single event must come from the same external entity, so that the
Locator provides useful information.
</p>

<p>
The application must not attempt to read from the array outside of the
specified range.
</p>

<p>
Note that some parsers will report whitespace using the
ignorableWhitespace() method rather than this one (validating parsers
must do so).
</p>

@param ch
The characters from the XML document.
@param start
The start position in the array.
@param length
The number of characters to read from the array.
@see #ignorableWhitespace
@see org.xml.sax.Locator
Receive notification of cdata .