To download file, using java.nio
Good evening, programmers. I need help.
I want to download a file, using java.nio. The content of the file doesn't matter.
E.g. I have the url="http://www.google.com". The result of the downloading will be a HTML file.
Another case: I have the url="http://citylan.dl.sourceforge.net/project/pidgin/Pidgin/2.7.4/pidgin-2.7.4.exe". The result of the downloading will be an exe-file.
Please, help me. How can I do it with java.nio?
I mean ONLY how to download files,using java.nio, but not check the content of files and then rename them