Trying to read a file from URL using URL class and url.openStream().
The code:
try { URL url = new URL("http:/