for (int n; (n = in.read(buf)) > 0;) {
sb.append(buf, 0, n);
}
return new StringReader(sb.toString());
} catch (java.net.MalformedURLException ex) {
throw new UriCallbackException(externalReference, ex);
} catch (IOException ex) {
throw new UriCallbackException(externalReference, ex);
}
}
public URI rewrite(ExternalReference externalReference, String string) {
return retrievedUri.resolve(externalReference.getUri());