{
uri = new URI(input.getUri());
}
catch (URISyntaxException e)
{
throw new ResolverException(e);
}
if (!uri.isAbsolute())
{
throw new ResolverException("cannot open relative URI: " + uri);
}
URL url = new URL(uri.toASCIIString());
// XXX should set the encoding properly
// XXX if this is HTTP and we've been redirected, should do
// input.setURI with the new URI