protected StringBuilder processLine ( String nextElement ) { StringBuilder sb = new StringBuilder ( nextElement . length ( ) * 2 ) ; // this is for the worse case where all elements have to be escaped. for ( int j = 0 ; j < nextElement . length ( ) ; j ++ ) { char nextChar = nextElement . charAt ( j ) ; processCharacter ( sb , nextChar ) ; } return sb ; }
Processes all the characters in a line .