public static String escape(String str){
  Utils.checkNotNull(str,"str == null");
  int slen=str.length();
  for (int index=0; index < slen; index++) {
    char c=str.charAt(index);
    if (c >= SAFE_OCTETS.length || !SAFE_OCTETS[c]) {
      return escapeSlow(str,index);
    }
  }
  return str;
}

public static String escape ( String str ) { Utils . checkNotNull ( str , "str == null" ) ; int slen = str . length ( ) ; for ( int index = 0 ; index < slen ; index ++ ) { char c = str . charAt ( index ) ; if ( c >= SAFE_OCTETS . length || ! SAFE_OCTETS [ c ] ) { return escapeSlow ( str , index ) ; } } return str ; }
returns the escaped form of a given literal string .
