/** * Returns <code>true</code> if the url is valid, that is, if it contains only allowed characters. * * @return <code>true</code> or the invalid character */ public static boolean isValid(String url) { return (checkUrl(url) == null); }
/** * Returns <code>null</code> if the url is valid, that is, if it contains only allowed characters. Otherwhise, the * invalid character is returned. * * @return <code>null</code> or the invalid character */ public static Character getInvalidCharacter(String url) { Character c = checkUrl(url); return c; }