Greetings all,
I am trying to download 'gz' file using URL class .Code snippet is as:
URL url = new URL("ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb/pdb132l.ent.gz");
InputStream conn = new GZIPInputStream(url.openStream());
But it throws the error:
Exception in thread "main" java.net.UnknownHostException: ftp.wwpdb.org at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:525) at java.net.Socket.connect(Socket.java:475)
What could be the issue?