/** * Validates the legal characters of a percent-encoded string that * represents a URI component type. * * @param s the encoded string. * @param t the URI component type identifying the legal characters. * @return true if the encoded string is valid, otherwise false. */ public static boolean valid(String s, Type t) { return valid(s, t, false); }
/** * Validates the legal characters of a percent-encoded string that * represents a URI component type. * * @param s the encoded string. * @param t the URI component type identifying the legal characters. * @return true if the encoded string is valid, otherwise false. */ public static boolean valid(String s, Type t) { return valid(s, t, false); }