import org.json.simple.parser.ContentHandler;
import org.json.simple.parser.ParseException;
+import jalview.util.HttpUtils;
import jalview.util.JSONUtils;
import jalview.util.MessageManager;
import jalview.ws.HttpClientUtils;
// return processJsonResponseFor(new
// InputStreamReader(geturl.openStream()));
ArrayList<Reader> readers = new ArrayList<>();
- readers.add(new InputStreamReader(geturl.openStream()));
+ readers.add(new InputStreamReader(HttpUtils.openStream(geturl)));
return readers.iterator();
}