question: boolean addToBuffer ( char c ) throws IOException { int len = sb . length ( ) ; if ( len == 0 && c != CHAR_LT ) return false ; sb . append ( c ) ; if ( ++ len >= minTagLen ) { boolean isClosingTag = ( len >= 2 && sb . charAt ( 1 ) == CHAR_SL ) ; String substr ; if ( isClosingTag ) substr = sb . substring ( 2 ) ; else substr = sb . substring ( 1 ) ; for ( int i = 0 ; i < EXCLUDE_TAGS . length ; i ++ ) { if ( substr . equalsIgnoreCase ( EXCLUDE_TAGS [ i ] ) ) { if ( isClosingTag ) { depthDec ( i ) ; printBuffer ( ) ; lastChar = 0 ; } else { depthInc ( i ) ; } } } } return true ; }
target:  checks if a character is part of an open html tag or close html tag, and if so adds it to the buffer, otherwise returns false.