public static boolean verifyEscaped(final char[] original){
  for (int i=0; i < original.length; i++) {
    final int c=original[i];
    if (c > 128) {
      return false;
    }
 else     if (c == '%') {
      if (Character.digit(original[++i],16) == -1 || Character.digit(original[++i],16) == -1) {
        return false;
      }
    }
  }
  return true;
}

public static boolean verifyEscaped ( final char [ ] original ) { for ( int i = 0 ; i < original . length ; i ++ ) { final int c = original [ i ] ; if ( c > 128 ) { return false ; } else if ( c == '%' ) { if ( Character . digit ( original [ ++ i ] , 16 ) == - 1 || Character . digit ( original [ ++ i ] , 16 ) == - 1 ) { return false ; } } } return true ; }
verify whether a given string is escaped or not
