class UriComponent {

    public static boolean checkHexCharacters(String s, int p) {
        if (p > (s.length() - 3)) {
            return false;
        }
        try {
            getHexCharacter(s, ++p);
            getHexCharacter(s, ++p);
            return true;
        } catch (IllegalArgumentException e) {
            return false;
        }
    }

    private  UriComponent();

}