code: 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;
     }
docs: Processes all the characters in a line.
  @param nextElement - element to process.
  @return a StringBuilder with the elements data.