code: private void processCharacter(StringBuilder sb, char nextChar) {
        if ((escapechar != NO_ESCAPE_CHARACTER) && checkCharactersToEscape(nextChar)) {
           sb.append(escapechar).append(nextChar);
        } else {
           sb.append(nextChar);
        }
     }
docs: Appends the character to the StringBuilder adding the escape character if needed.
  @param sb - StringBuffer holding the processed character.
  @param nextChar - character to process