private boolean extraEntity(String outputString,int charToMap){
  boolean extra=false;
  if (charToMap < ASCII_MAX) {
switch (charToMap) {
case '"':
      if (!outputString.equals("&quot;"))       extra=true;
    break;
case '&':
  if (!outputString.equals("&amp;"))   extra=true;
break;
case '<':
if (!outputString.equals("&lt;")) extra=true;
break;
case '>':
if (!outputString.equals("&gt;")) extra=true;
break;
default :
extra=true;
}
}
return extra;
}

private boolean extraEntity ( String outputString , int charToMap ) { boolean extra = false ; if ( charToMap < ASCII_MAX ) { switch ( charToMap ) { case '"' : if ( ! outputString . equals ( "&quot;" ) ) extra = true ; break ; case '&' : if ( ! outputString . equals ( "&amp;" ) ) extra = true ; break ; case '<' : if ( ! outputString . equals ( "&lt;" ) ) extra = true ; break ; case '>' : if ( ! outputString . equals ( "&gt;" ) ) extra = true ; break ; default : extra = true ; } } return extra ; }
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 .
