code: private boolean extraEntity(String outputString, int charToMap)
      {
          boolean extra = false;
          if (charToMap < ASCII_MAX)
          {
              switch (charToMap)
              {
                  case '"' : // quot
                  	if (!outputString.equals("&quot;"))
                  		extra = true;  
                  	break;
                  case '&' : // amp
                  	if (!outputString.equals("&amp;"))
                  		extra = true;
                  	break;
                  case '<' : // lt
                  	if (!outputString.equals("&lt;"))
                  		extra = true;
                  	break;
                  case '>' : // gt
                  	if (!outputString.equals("&gt;"))
                  		extra = true;
                      break;
                  default : // other entity in range 0 to 127  
                      extra = true;
              }
          }
          return extra;
      }
docs: This method returns true if there are some non-standard mappings to
  entities other than quot, amp, lt, gt, and its only purpose is for
  performance.
  @param charToMap The value of the character that is mapped to a String
  @param outputString The String to which the character is mapped, usually
  an entity reference such as "&lt;".
  @return true if the mapping is not one of:
  <ul>
  <li> '<' to "&lt;"
  <li> '>' to "&gt;"
  <li> '&' to "&amp;"
  <li> '"' to "&quot;"
  </ul>