question: protected void completeCurrentTextNode ( ) { if ( stripWhitespaceText ) { boolean whitespace = true ; for ( int i = 0 , size = textBuffer . length ( ) ; i < size ; i ++ ) { if ( ! Character . isWhitespace ( textBuffer . charAt ( i ) ) ) { whitespace = false ; break ; } } if ( ! whitespace ) { currentElement . addText ( textBuffer . toString ( ) ) ; } } else { currentElement . addText ( textBuffer . toString ( ) ) ; } textBuffer . setLength ( 0 ) ; textInTextBuffer = false ; }
target:  If the current text buffer contains any text then create a new text node with it and add it to the current element